Package pl.poznan.put.pdb
Class ImmutablePdbRemark465Line
java.lang.Object
pl.poznan.put.pdb.PdbRemark465Line
pl.poznan.put.pdb.ImmutablePdbRemark465Line
- All Implemented Interfaces:
Serializable
,Comparable<ChainNumberICode>
,ChainNumberICode
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class ImmutablePdbRemark465Line
extends PdbRemark465Line
Immutable implementation of
PdbRemark465Line
.
Use the builder to create immutable instances:
ImmutablePdbRemark465Line.builder()
.
Use the static factory method to create immutable instances:
ImmutablePdbRemark465Line.of()
.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutablePdbRemark465Line
. -
Field Summary
Fields inherited from class pl.poznan.put.pdb.PdbRemark465Line
PROLOGUE
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forImmutablePdbRemark465Line
.static ImmutablePdbRemark465Line
copyOf
(PdbRemark465Line instance) Creates an immutable copy of aPdbRemark465Line
value.boolean
This instance is equal to all instances ofImmutablePdbRemark465Line
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:modelNumber
,residueName
,chainIdentifier
,residueNumber
,insertionCode
.int
static ImmutablePdbRemark465Line
of
(int modelNumber, String residueName, String chainIdentifier, int residueNumber, Optional<String> insertionCode) Construct a new immutablePdbRemark465Line
instance.int
withChainIdentifier
(String value) Copy the current immutable object by setting a value for thechainIdentifier
attribute.withInsertionCode
(String value) Copy the current immutable object by setting a present value for the optionalinsertionCode
attribute.withInsertionCode
(Optional<String> optional) Copy the current immutable object by setting an optional value for theinsertionCode
attribute.withModelNumber
(int value) Copy the current immutable object by setting a value for themodelNumber
attribute.withResidueName
(String value) Copy the current immutable object by setting a value for theresidueName
attribute.withResidueNumber
(int value) Copy the current immutable object by setting a value for theresidueNumber
attribute.Methods inherited from class pl.poznan.put.pdb.PdbRemark465Line
isCommentLine, parse, toPdb, toResidue, 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
-
modelNumber
public int modelNumber()- Specified by:
modelNumber
in classPdbRemark465Line
- Returns:
- The value of the
modelNumber
attribute
-
residueName
- Specified by:
residueName
in classPdbRemark465Line
- Returns:
- The value of the
residueName
attribute
-
chainIdentifier
- Specified by:
chainIdentifier
in interfaceChainNumberICode
- Specified by:
chainIdentifier
in classPdbRemark465Line
- Returns:
- The value of the
chainIdentifier
attribute
-
residueNumber
public int residueNumber()- Specified by:
residueNumber
in interfaceChainNumberICode
- Specified by:
residueNumber
in classPdbRemark465Line
- Returns:
- The value of the
residueNumber
attribute
-
insertionCode
- Specified by:
insertionCode
in interfaceChainNumberICode
- Specified by:
insertionCode
in classPdbRemark465Line
- Returns:
- The value of the
insertionCode
attribute
-
withModelNumber
Copy the current immutable object by setting a value for themodelNumber
attribute. A value equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for modelNumber- 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
-
equals
This instance is equal to all instances ofImmutablePdbRemark465Line
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:modelNumber
,residueName
,chainIdentifier
,residueNumber
,insertionCode
. -
of
public static ImmutablePdbRemark465Line of(int modelNumber, String residueName, String chainIdentifier, int residueNumber, Optional<String> insertionCode) Construct a new immutablePdbRemark465Line
instance.- Parameters:
modelNumber
- The value for themodelNumber
attributeresidueName
- The value for theresidueName
attributechainIdentifier
- The value for thechainIdentifier
attributeresidueNumber
- The value for theresidueNumber
attributeinsertionCode
- The value for theinsertionCode
attribute- Returns:
- An immutable PdbRemark465Line instance
-
copyOf
Creates an immutable copy of aPdbRemark465Line
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 PdbRemark465Line instance
-
builder
Creates a builder forImmutablePdbRemark465Line
.ImmutablePdbRemark465Line.builder() .modelNumber(int) // required
modelNumber
.residueName(String) // requiredresidueName
.chainIdentifier(String) // requiredchainIdentifier
.residueNumber(int) // requiredresidueNumber
.insertionCode(String) // optionalinsertionCode
.build();- Returns:
- A new ImmutablePdbRemark465Line builder
-