Class ImmutableQuantifiedBasePair.Builder
- Enclosing class:
- ImmutableQuantifiedBasePair
ImmutableQuantifiedBasePair.
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 TypeMethodDescriptionInitializes the value for thebasePairattribute.Initializes the value for thebphattribute.Initializes the value for thebrattribute.buckle(double buckle) Initializes the value for thebuckleattribute.build()Builds a newImmutableQuantifiedBasePair.from(ClassifiedBasePair instance) Fill a builder with attribute values from the providedpl.poznan.put.structure.ClassifiedBasePairinstance.from(QuantifiedBasePair instance) Fill a builder with attribute values from the providedpl.poznan.put.structure.QuantifiedBasePairinstance.interactionType(InteractionType interactionType) Initializes the value for theinteractionTypeattribute.isRepresented(boolean isRepresented) Initializes the value for theisRepresentedattribute.leontisWesthof(LeontisWesthof leontisWesthof) Initializes the value for theleontisWesthofattribute.opening(double opening) Initializes the value for theopeningattribute.propeller(double propeller) Initializes the value for thepropellerattribute.Initializes the value for thesaengerattribute.shear(double shear) Initializes the value for theshearattribute.stackingTopology(StackingTopology stackingTopology) Initializes the value for thestackingTopologyattribute.stagger(double stagger) Initializes the value for thestaggerattribute.stretch(double stretch) Initializes the value for thestretchattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedpl.poznan.put.structure.ClassifiedBasePairinstance.- 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.QuantifiedBasePairinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
basePair
Initializes the value for thebasePairattribute.- Parameters:
basePair- The value for basePair- Returns:
thisbuilder for use in a chained invocation
-
interactionType
Initializes the value for theinteractionTypeattribute.If not set, this attribute will have a default value as returned by the initializer of
interactionType.- Parameters:
interactionType- The value for interactionType- Returns:
thisbuilder for use in a chained invocation
-
saenger
Initializes the value for thesaengerattribute.If not set, this attribute will have a default value as returned by the initializer of
saenger.- Parameters:
saenger- The value for saenger- Returns:
thisbuilder for use in a chained invocation
-
leontisWesthof
Initializes the value for theleontisWesthofattribute.If not set, this attribute will have a default value as returned by the initializer of
leontisWesthof.- Parameters:
leontisWesthof- The value for leontisWesthof- Returns:
thisbuilder for use in a chained invocation
-
bph
Initializes the value for thebphattribute.If not set, this attribute will have a default value as returned by the initializer of
bph.- Parameters:
bph- The value for bph- Returns:
thisbuilder for use in a chained invocation
-
br
Initializes the value for thebrattribute.If not set, this attribute will have a default value as returned by the initializer of
br.- Parameters:
br- The value for br- Returns:
thisbuilder for use in a chained invocation
-
stackingTopology
public final ImmutableQuantifiedBasePair.Builder stackingTopology(StackingTopology stackingTopology) Initializes the value for thestackingTopologyattribute.If not set, this attribute will have a default value as returned by the initializer of
stackingTopology.- Parameters:
stackingTopology- The value for stackingTopology- Returns:
thisbuilder for use in a chained invocation
-
isRepresented
Initializes the value for theisRepresentedattribute.If not set, this attribute will have a default value as returned by the initializer of
isRepresented.- Parameters:
isRepresented- The value for isRepresented- Returns:
thisbuilder for use in a chained invocation
-
shear
Initializes the value for theshearattribute.- Parameters:
shear- The value for shear- Returns:
thisbuilder for use in a chained invocation
-
stretch
Initializes the value for thestretchattribute.- Parameters:
stretch- The value for stretch- Returns:
thisbuilder for use in a chained invocation
-
stagger
Initializes the value for thestaggerattribute.- Parameters:
stagger- The value for stagger- Returns:
thisbuilder for use in a chained invocation
-
buckle
Initializes the value for thebuckleattribute.- Parameters:
buckle- The value for buckle- Returns:
thisbuilder for use in a chained invocation
-
propeller
Initializes the value for thepropellerattribute.- Parameters:
propeller- The value for propeller- Returns:
thisbuilder for use in a chained invocation
-
opening
Initializes the value for theopeningattribute.- Parameters:
opening- The value for opening- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableQuantifiedBasePair.- Returns:
- An immutable instance of QuantifiedBasePair
- Throws:
IllegalStateException- if any required attributes are missing
-