Package pl.poznan.put.pdb
Class ImmutablePdbAtomLine.Builder
java.lang.Object
pl.poznan.put.pdb.ImmutablePdbAtomLine.Builder
- Enclosing class:
 - ImmutablePdbAtomLine
 
Builds instances of type 
ImmutablePdbAtomLine.
 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 TypeMethodDescriptionalternateLocation(String alternateLocation) Initializes the optional valuealternateLocationto alternateLocation.alternateLocation(Optional<String> alternateLocation) Initializes the optional valuealternateLocationto alternateLocation.Initializes the value for theatomNameattribute.build()Builds a newImmutablePdbAtomLine.chainIdentifier(String chainIdentifier) Initializes the value for thechainIdentifierattribute.Initializes the value for thechargeattribute.elementSymbol(String elementSymbol) Initializes the value for theelementSymbolattribute.from(ChainNumberICode instance) Fill a builder with attribute values from the providedpl.poznan.put.pdb.ChainNumberICodeinstance.from(PdbAtomLine instance) Fill a builder with attribute values from the providedpl.poznan.put.pdb.PdbAtomLineinstance.insertionCode(String insertionCode) Initializes the optional valueinsertionCodeto insertionCode.insertionCode(Optional<String> insertionCode) Initializes the optional valueinsertionCodeto insertionCode.occupancy(double occupancy) Initializes the value for theoccupancyattribute.residueName(String residueName) Initializes the value for theresidueNameattribute.residueNumber(int residueNumber) Initializes the value for theresidueNumberattribute.serialNumber(int serialNumber) Initializes the value for theserialNumberattribute.temperatureFactor(double temperatureFactor) Initializes the value for thetemperatureFactorattribute.x(double x) Initializes the value for thexattribute.y(double y) Initializes the value for theyattribute.z(double z) Initializes the value for thezattribute. 
- 
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.PdbAtomLineinstance.- Parameters:
 instance- The instance from which to copy values- Returns:
 thisbuilder for use in a chained invocation
 - 
serialNumber
Initializes the value for theserialNumberattribute.- Parameters:
 serialNumber- The value for serialNumber- Returns:
 thisbuilder for use in a chained invocation
 - 
atomName
Initializes the value for theatomNameattribute.- Parameters:
 atomName- The value for atomName- Returns:
 thisbuilder for use in a chained invocation
 - 
alternateLocation
Initializes the optional valuealternateLocationto alternateLocation.- Parameters:
 alternateLocation- The value for alternateLocation- Returns:
 thisbuilder for chained invocation
 - 
alternateLocation
Initializes the optional valuealternateLocationto alternateLocation.- Parameters:
 alternateLocation- The value for alternateLocation- 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
 - 
x
Initializes the value for thexattribute.- Parameters:
 x- The value for x- Returns:
 thisbuilder for use in a chained invocation
 - 
y
Initializes the value for theyattribute.- Parameters:
 y- The value for y- Returns:
 thisbuilder for use in a chained invocation
 - 
z
Initializes the value for thezattribute.- Parameters:
 z- The value for z- Returns:
 thisbuilder for use in a chained invocation
 - 
occupancy
Initializes the value for theoccupancyattribute.- Parameters:
 occupancy- The value for occupancy- Returns:
 thisbuilder for use in a chained invocation
 - 
temperatureFactor
Initializes the value for thetemperatureFactorattribute.- Parameters:
 temperatureFactor- The value for temperatureFactor- Returns:
 thisbuilder for use in a chained invocation
 - 
elementSymbol
Initializes the value for theelementSymbolattribute.- Parameters:
 elementSymbol- The value for elementSymbol- Returns:
 thisbuilder for use in a chained invocation
 - 
charge
Initializes the value for thechargeattribute.- Parameters:
 charge- The value for charge- Returns:
 thisbuilder for use in a chained invocation
 - 
build
Builds a newImmutablePdbAtomLine.- Returns:
 - An immutable instance of PdbAtomLine
 - Throws:
 IllegalStateException- if any required attributes are missing
 
 -