Package pl.poznan.put.pdb
Class ImmutablePdbRemark465Line.Builder
java.lang.Object
pl.poznan.put.pdb.ImmutablePdbRemark465Line.Builder
- Enclosing class:
- ImmutablePdbRemark465Line
Builds instances of type
ImmutablePdbRemark465Line
.
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 newImmutablePdbRemark465Line
.chainIdentifier
(String chainIdentifier) Initializes the value for thechainIdentifier
attribute.from
(ChainNumberICode instance) Fill a builder with attribute values from the providedpl.poznan.put.pdb.ChainNumberICode
instance.from
(PdbRemark465Line instance) Fill a builder with attribute values from the providedpl.poznan.put.pdb.PdbRemark465Line
instance.insertionCode
(String insertionCode) Initializes the optional valueinsertionCode
to insertionCode.insertionCode
(Optional<String> insertionCode) Initializes the optional valueinsertionCode
to insertionCode.modelNumber
(int modelNumber) Initializes the value for themodelNumber
attribute.residueName
(String residueName) Initializes the value for theresidueName
attribute.residueNumber
(int residueNumber) Initializes the value for theresidueNumber
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.PdbRemark465Line
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
modelNumber
Initializes the value for themodelNumber
attribute.- Parameters:
modelNumber
- The value for modelNumber- 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
-
build
Builds a newImmutablePdbRemark465Line
.- Returns:
- An immutable instance of PdbRemark465Line
- Throws:
IllegalStateException
- if any required attributes are missing
-