Package pl.poznan.put.pdb
Class ImmutablePdbModresLine.Builder
- java.lang.Object
-
- pl.poznan.put.pdb.ImmutablePdbModresLine.Builder
-
- Enclosing class:
- ImmutablePdbModresLine
@NotThreadSafe public static final class ImmutablePdbModresLine.Builder extends Object
Builds instances of typeImmutablePdbModresLine. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutablePdbModresLinebuild()Builds a newImmutablePdbModresLine.ImmutablePdbModresLine.BuilderchainIdentifier(String chainIdentifier)Initializes the value for thechainIdentifierattribute.ImmutablePdbModresLine.Buildercomment(String comment)Initializes the value for thecommentattribute.ImmutablePdbModresLine.Builderfrom(ChainNumberICode instance)Fill a builder with attribute values from the providedpl.poznan.put.pdb.ChainNumberICodeinstance.ImmutablePdbModresLine.Builderfrom(PdbModresLine instance)Fill a builder with attribute values from the providedpl.poznan.put.pdb.PdbModresLineinstance.ImmutablePdbModresLine.BuilderidCode(String idCode)Initializes the value for theidCodeattribute.ImmutablePdbModresLine.BuilderinsertionCode(String insertionCode)Initializes the value for theinsertionCodeattribute.ImmutablePdbModresLine.BuilderresidueName(String residueName)Initializes the value for theresidueNameattribute.ImmutablePdbModresLine.BuilderresidueNumber(int residueNumber)Initializes the value for theresidueNumberattribute.ImmutablePdbModresLine.BuilderstandardResidueName(String standardResidueName)Initializes the value for thestandardResidueNameattribute.
-
-
-
Method Detail
-
from
public final ImmutablePdbModresLine.Builder from(ChainNumberICode instance)
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
public final ImmutablePdbModresLine.Builder from(PdbModresLine instance)
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
public final ImmutablePdbModresLine.Builder idCode(String idCode)
Initializes the value for theidCodeattribute.- Parameters:
idCode- The value for idCode- Returns:
thisbuilder for use in a chained invocation
-
residueName
public final ImmutablePdbModresLine.Builder residueName(String residueName)
Initializes the value for theresidueNameattribute.- Parameters:
residueName- The value for residueName- Returns:
thisbuilder for use in a chained invocation
-
chainIdentifier
public final ImmutablePdbModresLine.Builder chainIdentifier(String chainIdentifier)
Initializes the value for thechainIdentifierattribute.- Parameters:
chainIdentifier- The value for chainIdentifier- Returns:
thisbuilder for use in a chained invocation
-
residueNumber
public final ImmutablePdbModresLine.Builder residueNumber(int residueNumber)
Initializes the value for theresidueNumberattribute.- Parameters:
residueNumber- The value for residueNumber- Returns:
thisbuilder for use in a chained invocation
-
insertionCode
public final ImmutablePdbModresLine.Builder insertionCode(String insertionCode)
Initializes the value for theinsertionCodeattribute.- Parameters:
insertionCode- The value for insertionCode- Returns:
thisbuilder for use in a chained invocation
-
standardResidueName
public final ImmutablePdbModresLine.Builder standardResidueName(String standardResidueName)
Initializes the value for thestandardResidueNameattribute.- Parameters:
standardResidueName- The value for standardResidueName- Returns:
thisbuilder for use in a chained invocation
-
comment
public final ImmutablePdbModresLine.Builder comment(String comment)
Initializes the value for thecommentattribute.- Parameters:
comment- The value for comment- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutablePdbModresLine build()
Builds a newImmutablePdbModresLine.- Returns:
- An immutable instance of PdbModresLine
- Throws:
IllegalStateException- if any required attributes are missing
-
-