Package pl.poznan.put.structure.formats
Class ImmutableCombinedStrandFromPdb.Builder
- java.lang.Object
-
- pl.poznan.put.structure.formats.ImmutableCombinedStrandFromPdb.Builder
-
- Enclosing class:
- ImmutableCombinedStrandFromPdb
@NotThreadSafe public static final class ImmutableCombinedStrandFromPdb.Builder extends Object
Builds instances of typeImmutableCombinedStrandFromPdb. 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
-
-
-
Method Detail
-
from
public final ImmutableCombinedStrandFromPdb.Builder from(CombinedStrandFromPdb instance)
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
public final ImmutableCombinedStrandFromPdb.Builder from(AbstractCombinedStrand instance)
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
-
from
public final ImmutableCombinedStrandFromPdb.Builder from(DotBracket instance)
Fill a builder with attribute values from the providedpl.poznan.put.structure.formats.DotBracketinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addCombineStrands
public final ImmutableCombinedStrandFromPdb.Builder addCombineStrands(DotBracket element)
Adds one element tocombineStrandslist.- Parameters:
element- A combineStrands element- Returns:
thisbuilder for use in a chained invocation
-
addCombineStrands
public final ImmutableCombinedStrandFromPdb.Builder addCombineStrands(DotBracket... elements)
Adds elements tocombineStrandslist.- Parameters:
elements- An array of combineStrands elements- Returns:
thisbuilder for use in a chained invocation
-
combineStrands
public final ImmutableCombinedStrandFromPdb.Builder combineStrands(Iterable<? extends DotBracket> elements)
Sets or replaces all elements forcombineStrandslist.- Parameters:
elements- An iterable of combineStrands elements- Returns:
thisbuilder for use in a chained invocation
-
addAllCombineStrands
public final ImmutableCombinedStrandFromPdb.Builder addAllCombineStrands(Iterable<? extends DotBracket> elements)
Adds elements tocombineStrandslist.- Parameters:
elements- An iterable of combineStrands elements- Returns:
thisbuilder for use in a chained invocation
-
addInputStrands
public final ImmutableCombinedStrandFromPdb.Builder addInputStrands(Strand element)
Adds one element toinputStrandslist.- Parameters:
element- A inputStrands element- Returns:
thisbuilder for use in a chained invocation
-
addInputStrands
public final ImmutableCombinedStrandFromPdb.Builder addInputStrands(Strand... elements)
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
public ImmutableCombinedStrandFromPdb build()
Builds a newImmutableCombinedStrandFromPdb.- Returns:
- An immutable instance of CombinedStrandFromPdb
- Throws:
IllegalStateException- if any required attributes are missing
-
-