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 thechainIdentifierattribute.from(ChainNumberICode instance) Fill a builder with attribute values from the providedpl.poznan.put.pdb.ChainNumberICodeinstance.from(PdbRemark465Line instance) Fill a builder with attribute values from the providedpl.poznan.put.pdb.PdbRemark465Lineinstance.insertionCode(String insertionCode) Initializes the optional valueinsertionCodeto insertionCode.insertionCode(Optional<String> insertionCode) Initializes the optional valueinsertionCodeto insertionCode.modelNumber(int modelNumber) Initializes the value for themodelNumberattribute.residueName(String residueName) Initializes the value for theresidueNameattribute.residueNumber(int residueNumber) Initializes the value for theresidueNumberattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedpl.poznan.put.pdb.ChainNumberICodeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedpl.poznan.put.pdb.PdbRemark465Lineinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
modelNumber
Initializes the value for themodelNumberattribute.- Parameters:
modelNumber- The value for modelNumber- Returns:
thisbuilder for use in a chained invocation
-
residueName
Initializes the value for theresidueNameattribute.- Parameters:
residueName- The value for residueName- Returns:
thisbuilder for use in a chained invocation
-
chainIdentifier
Initializes the value for thechainIdentifierattribute.- Parameters:
chainIdentifier- The value for chainIdentifier- Returns:
thisbuilder for use in a chained invocation
-
residueNumber
Initializes the value for theresidueNumberattribute.- Parameters:
residueNumber- The value for residueNumber- Returns:
thisbuilder for use in a chained invocation
-
insertionCode
Initializes the optional valueinsertionCodeto insertionCode.- Parameters:
insertionCode- The value for insertionCode- Returns:
thisbuilder for chained invocation
-
insertionCode
Initializes the optional valueinsertionCodeto insertionCode.- Parameters:
insertionCode- The value for insertionCode- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutablePdbRemark465Line.- Returns:
- An immutable instance of PdbRemark465Line
- Throws:
IllegalStateException- if any required attributes are missing
-