Package pl.poznan.put.structure.formats
Class ImmutableCombinedStrandFromPdb.Builder
java.lang.Object
pl.poznan.put.structure.formats.ImmutableCombinedStrandFromPdb.Builder
- Enclosing class:
- ImmutableCombinedStrandFromPdb
Builds instances of type
ImmutableCombinedStrandFromPdb.
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 TypeMethodDescriptionaddAllInputStrands(Iterable<? extends Strand> elements) Adds elements toinputStrandslist.addInputStrands(Strand element) Adds one element toinputStrandslist.addInputStrands(Strand... elements) Adds elements toinputStrandslist.build()Builds a newImmutableCombinedStrandFromPdb.from(AbstractCombinedStrand instance) Fill a builder with attribute values from the providedpl.poznan.put.structure.formats.AbstractCombinedStrandinstance.from(CombinedStrandFromPdb instance) Fill a builder with attribute values from the providedpl.poznan.put.structure.formats.CombinedStrandFromPdbinstance.inputStrands(Iterable<? extends Strand> elements) Sets or replaces all elements forinputStrandslist.inputSymbolToResidue(Map<? extends DotBracketSymbol, ? extends PdbResidueIdentifier> entries) Sets or replaces all mappings from the specified map as entries for theinputSymbolToResiduemap.putAllInputSymbolToResidue(Map<? extends DotBracketSymbol, ? extends PdbResidueIdentifier> entries) Put all mappings from the specified map as entries toinputSymbolToResiduemap.putInputSymbolToResidue(Map.Entry<? extends DotBracketSymbol, ? extends PdbResidueIdentifier> entry) Put one entry to theinputSymbolToResiduemap.Put one entry to theinputSymbolToResiduemap.
-
Method Details
-
from
Fill a builder with attribute values from the providedpl.poznan.put.structure.formats.CombinedStrandFromPdbinstance.- 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.structure.formats.AbstractCombinedStrandinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addInputStrands
Adds one element toinputStrandslist.- Parameters:
element- A inputStrands element- Returns:
thisbuilder for use in a chained invocation
-
addInputStrands
Adds elements toinputStrandslist.- Parameters:
elements- An array of inputStrands elements- Returns:
thisbuilder for use in a chained invocation
-
inputStrands
public final ImmutableCombinedStrandFromPdb.Builder inputStrands(Iterable<? extends Strand> elements) Sets or replaces all elements forinputStrandslist.- Parameters:
elements- An iterable of inputStrands elements- Returns:
thisbuilder for use in a chained invocation
-
addAllInputStrands
public final ImmutableCombinedStrandFromPdb.Builder addAllInputStrands(Iterable<? extends Strand> elements) Adds elements toinputStrandslist.- Parameters:
elements- An iterable of inputStrands elements- Returns:
thisbuilder for use in a chained invocation
-
putInputSymbolToResidue
public final ImmutableCombinedStrandFromPdb.Builder putInputSymbolToResidue(DotBracketSymbol key, PdbResidueIdentifier value) Put one entry to theinputSymbolToResiduemap.- Parameters:
key- The key in the inputSymbolToResidue mapvalue- The associated value in the inputSymbolToResidue map- Returns:
thisbuilder for use in a chained invocation
-
putInputSymbolToResidue
public final ImmutableCombinedStrandFromPdb.Builder putInputSymbolToResidue(Map.Entry<? extends DotBracketSymbol, ? extends PdbResidueIdentifier> entry) Put one entry to theinputSymbolToResiduemap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
inputSymbolToResidue
public final ImmutableCombinedStrandFromPdb.Builder inputSymbolToResidue(Map<? extends DotBracketSymbol, ? extends PdbResidueIdentifier> entries) Sets or replaces all mappings from the specified map as entries for theinputSymbolToResiduemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the inputSymbolToResidue map- Returns:
thisbuilder for use in a chained invocation
-
putAllInputSymbolToResidue
public final ImmutableCombinedStrandFromPdb.Builder putAllInputSymbolToResidue(Map<? extends DotBracketSymbol, ? extends PdbResidueIdentifier> entries) Put all mappings from the specified map as entries toinputSymbolToResiduemap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the inputSymbolToResidue map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableCombinedStrandFromPdb.- Returns:
- An immutable instance of CombinedStrandFromPdb
- Throws:
IllegalStateException- if any required attributes are missing
-