Package pl.poznan.put.pdb
Class ImmutablePdbModresLine
java.lang.Object
pl.poznan.put.pdb.PdbModresLine
pl.poznan.put.pdb.ImmutablePdbModresLine
- All Implemented Interfaces:
Serializable
,Comparable<ChainNumberICode>
,ChainNumberICode
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutablePdbModresLine
extends PdbModresLine
Immutable implementation of
PdbModresLine
.
Use the builder to create immutable instances:
ImmutablePdbModresLine.builder()
.
Use the static factory method to create immutable instances:
ImmutablePdbModresLine.of()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutablePdbModresLine
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePdbModresLine
.comment()
static ImmutablePdbModresLine
copyOf
(PdbModresLine instance) Creates an immutable copy of aPdbModresLine
value.boolean
This instance is equal to all instances ofImmutablePdbModresLine
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:idCode
,residueName
,chainIdentifier
,residueNumber
,insertionCode
,standardResidueName
,comment
.idCode()
static ImmutablePdbModresLine
of
(String idCode, String residueName, String chainIdentifier, int residueNumber, Optional<String> insertionCode, String standardResidueName, String comment) Construct a new immutablePdbModresLine
instance.int
final ImmutablePdbModresLine
withChainIdentifier
(String value) Copy the current immutable object by setting a value for thechainIdentifier
attribute.final ImmutablePdbModresLine
withComment
(String value) Copy the current immutable object by setting a value for thecomment
attribute.final ImmutablePdbModresLine
withIdCode
(String value) Copy the current immutable object by setting a value for theidCode
attribute.final ImmutablePdbModresLine
withInsertionCode
(String value) Copy the current immutable object by setting a present value for the optionalinsertionCode
attribute.final ImmutablePdbModresLine
withInsertionCode
(Optional<String> optional) Copy the current immutable object by setting an optional value for theinsertionCode
attribute.final ImmutablePdbModresLine
withResidueName
(String value) Copy the current immutable object by setting a value for theresidueName
attribute.final ImmutablePdbModresLine
withResidueNumber
(int value) Copy the current immutable object by setting a value for theresidueNumber
attribute.final ImmutablePdbModresLine
withStandardResidueName
(String value) Copy the current immutable object by setting a value for thestandardResidueName
attribute.Methods inherited from class pl.poznan.put.pdb.PdbModresLine
parse, toPdb, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface pl.poznan.put.pdb.ChainNumberICode
compareTo
-
Method Details
-
idCode
- Specified by:
idCode
in classPdbModresLine
- Returns:
- The value of the
idCode
attribute
-
residueName
- Specified by:
residueName
in classPdbModresLine
- Returns:
- The value of the
residueName
attribute
-
chainIdentifier
- Specified by:
chainIdentifier
in interfaceChainNumberICode
- Specified by:
chainIdentifier
in classPdbModresLine
- Returns:
- The value of the
chainIdentifier
attribute
-
residueNumber
public int residueNumber()- Specified by:
residueNumber
in interfaceChainNumberICode
- Specified by:
residueNumber
in classPdbModresLine
- Returns:
- The value of the
residueNumber
attribute
-
insertionCode
- Specified by:
insertionCode
in interfaceChainNumberICode
- Specified by:
insertionCode
in classPdbModresLine
- Returns:
- The value of the
insertionCode
attribute
-
standardResidueName
- Specified by:
standardResidueName
in classPdbModresLine
- Returns:
- The value of the
standardResidueName
attribute
-
comment
- Specified by:
comment
in classPdbModresLine
- Returns:
- The value of the
comment
attribute
-
withIdCode
Copy the current immutable object by setting a value for theidCode
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for idCode- Returns:
- A modified copy of the
this
object
-
withResidueName
Copy the current immutable object by setting a value for theresidueName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for residueName- Returns:
- A modified copy of the
this
object
-
withChainIdentifier
Copy the current immutable object by setting a value for thechainIdentifier
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for chainIdentifier- Returns:
- A modified copy of the
this
object
-
withResidueNumber
Copy the current immutable object by setting a value for theresidueNumber
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for residueNumber- Returns:
- A modified copy of the
this
object
-
withInsertionCode
Copy the current immutable object by setting a present value for the optionalinsertionCode
attribute.- Parameters:
value
- The value for insertionCode- Returns:
- A modified copy of
this
object
-
withInsertionCode
Copy the current immutable object by setting an optional value for theinsertionCode
attribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for insertionCode- Returns:
- A modified copy of
this
object
-
withStandardResidueName
Copy the current immutable object by setting a value for thestandardResidueName
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for standardResidueName- Returns:
- A modified copy of the
this
object
-
withComment
Copy the current immutable object by setting a value for thecomment
attribute. An equals check used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for comment- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutablePdbModresLine
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:idCode
,residueName
,chainIdentifier
,residueNumber
,insertionCode
,standardResidueName
,comment
. -
of
public static ImmutablePdbModresLine of(String idCode, String residueName, String chainIdentifier, int residueNumber, Optional<String> insertionCode, String standardResidueName, String comment) Construct a new immutablePdbModresLine
instance.- Parameters:
idCode
- The value for theidCode
attributeresidueName
- The value for theresidueName
attributechainIdentifier
- The value for thechainIdentifier
attributeresidueNumber
- The value for theresidueNumber
attributeinsertionCode
- The value for theinsertionCode
attributestandardResidueName
- The value for thestandardResidueName
attributecomment
- The value for thecomment
attribute- Returns:
- An immutable PdbModresLine instance
-
copyOf
Creates an immutable copy of aPdbModresLine
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable PdbModresLine instance
-
builder
Creates a builder forImmutablePdbModresLine
.ImmutablePdbModresLine.builder() .idCode(String) // required
idCode
.residueName(String) // requiredresidueName
.chainIdentifier(String) // requiredchainIdentifier
.residueNumber(int) // requiredresidueNumber
.insertionCode(String) // optionalinsertionCode
.standardResidueName(String) // requiredstandardResidueName
.comment(String) // requiredcomment
.build();- Returns:
- A new ImmutablePdbModresLine builder
-