Package pl.poznan.put.pdb
Class ImmutablePdbModresLine.Builder
java.lang.Object
pl.poznan.put.pdb.ImmutablePdbModresLine.Builder
- Enclosing class:
- ImmutablePdbModresLine
Builds instances of type
ImmutablePdbModresLine
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newImmutablePdbModresLine
.chainIdentifier
(String chainIdentifier) Initializes the value for thechainIdentifier
attribute.Initializes the value for thecomment
attribute.from
(ChainNumberICode instance) Fill a builder with attribute values from the providedpl.poznan.put.pdb.ChainNumberICode
instance.from
(PdbModresLine instance) Fill a builder with attribute values from the providedpl.poznan.put.pdb.PdbModresLine
instance.Initializes the value for theidCode
attribute.insertionCode
(String insertionCode) Initializes the optional valueinsertionCode
to insertionCode.insertionCode
(Optional<String> insertionCode) Initializes the optional valueinsertionCode
to insertionCode.residueName
(String residueName) Initializes the value for theresidueName
attribute.residueNumber
(int residueNumber) Initializes the value for theresidueNumber
attribute.standardResidueName
(String standardResidueName) Initializes the value for thestandardResidueName
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedpl.poznan.put.pdb.ChainNumberICode
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedpl.poznan.put.pdb.PdbModresLine
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
idCode
Initializes the value for theidCode
attribute.- Parameters:
idCode
- The value for idCode- Returns:
this
builder for use in a chained invocation
-
residueName
Initializes the value for theresidueName
attribute.- Parameters:
residueName
- The value for residueName- Returns:
this
builder for use in a chained invocation
-
chainIdentifier
Initializes the value for thechainIdentifier
attribute.- Parameters:
chainIdentifier
- The value for chainIdentifier- Returns:
this
builder for use in a chained invocation
-
residueNumber
Initializes the value for theresidueNumber
attribute.- Parameters:
residueNumber
- The value for residueNumber- Returns:
this
builder for use in a chained invocation
-
insertionCode
Initializes the optional valueinsertionCode
to insertionCode.- Parameters:
insertionCode
- The value for insertionCode- Returns:
this
builder for chained invocation
-
insertionCode
Initializes the optional valueinsertionCode
to insertionCode.- Parameters:
insertionCode
- The value for insertionCode- Returns:
this
builder for use in a chained invocation
-
standardResidueName
Initializes the value for thestandardResidueName
attribute.- Parameters:
standardResidueName
- The value for standardResidueName- Returns:
this
builder for use in a chained invocation
-
comment
Initializes the value for thecomment
attribute.- Parameters:
comment
- The value for comment- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutablePdbModresLine
.- Returns:
- An immutable instance of PdbModresLine
- Throws:
IllegalStateException
- if any required attributes are missing
-