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 thechainIdentifierattribute.Initializes the value for thecommentattribute.from(ChainNumberICode instance) Fill a builder with attribute values from the providedpl.poznan.put.pdb.ChainNumberICodeinstance.from(PdbModresLine instance) Fill a builder with attribute values from the providedpl.poznan.put.pdb.PdbModresLineinstance.Initializes the value for theidCodeattribute.insertionCode(String insertionCode) Initializes the optional valueinsertionCodeto insertionCode.insertionCode(Optional<String> insertionCode) Initializes the optional valueinsertionCodeto insertionCode.residueName(String residueName) Initializes the value for theresidueNameattribute.residueNumber(int residueNumber) Initializes the value for theresidueNumberattribute.standardResidueName(String standardResidueName) Initializes the value for thestandardResidueNameattribute.
-
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.PdbModresLineinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
idCode
Initializes the value for theidCodeattribute.- Parameters:
idCode- The value for idCode- 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
-
standardResidueName
Initializes the value for thestandardResidueNameattribute.- Parameters:
standardResidueName- The value for standardResidueName- Returns:
thisbuilder for use in a chained invocation
-
comment
Initializes the value for thecommentattribute.- Parameters:
comment- The value for comment- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutablePdbModresLine.- Returns:
- An immutable instance of PdbModresLine
- Throws:
IllegalStateException- if any required attributes are missing
-