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 thebasePair
attribute.Initializes the value for thebph
attribute.Initializes the value for thebr
attribute.buckle
(double buckle) Initializes the value for thebuckle
attribute.build()
Builds a newImmutableQuantifiedBasePair
.from
(ClassifiedBasePair instance) Fill a builder with attribute values from the providedpl.poznan.put.structure.ClassifiedBasePair
instance.from
(QuantifiedBasePair instance) Fill a builder with attribute values from the providedpl.poznan.put.structure.QuantifiedBasePair
instance.interactionType
(InteractionType interactionType) Initializes the value for theinteractionType
attribute.isRepresented
(boolean isRepresented) Initializes the value for theisRepresented
attribute.leontisWesthof
(LeontisWesthof leontisWesthof) Initializes the value for theleontisWesthof
attribute.opening
(double opening) Initializes the value for theopening
attribute.propeller
(double propeller) Initializes the value for thepropeller
attribute.Initializes the value for thesaenger
attribute.shear
(double shear) Initializes the value for theshear
attribute.stackingTopology
(StackingTopology stackingTopology) Initializes the value for thestackingTopology
attribute.stagger
(double stagger) Initializes the value for thestagger
attribute.stretch
(double stretch) Initializes the value for thestretch
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedpl.poznan.put.structure.ClassifiedBasePair
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedpl.poznan.put.structure.QuantifiedBasePair
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
basePair
Initializes the value for thebasePair
attribute.- Parameters:
basePair
- The value for basePair- Returns:
this
builder for use in a chained invocation
-
interactionType
Initializes the value for theinteractionType
attribute.If not set, this attribute will have a default value as returned by the initializer of
interactionType
.- Parameters:
interactionType
- The value for interactionType- Returns:
this
builder for use in a chained invocation
-
saenger
Initializes the value for thesaenger
attribute.If not set, this attribute will have a default value as returned by the initializer of
saenger
.- Parameters:
saenger
- The value for saenger- Returns:
this
builder for use in a chained invocation
-
leontisWesthof
Initializes the value for theleontisWesthof
attribute.If not set, this attribute will have a default value as returned by the initializer of
leontisWesthof
.- Parameters:
leontisWesthof
- The value for leontisWesthof- Returns:
this
builder for use in a chained invocation
-
bph
Initializes the value for thebph
attribute.If not set, this attribute will have a default value as returned by the initializer of
bph
.- Parameters:
bph
- The value for bph- Returns:
this
builder for use in a chained invocation
-
br
Initializes the value for thebr
attribute.If not set, this attribute will have a default value as returned by the initializer of
br
.- Parameters:
br
- The value for br- Returns:
this
builder for use in a chained invocation
-
stackingTopology
public final ImmutableQuantifiedBasePair.Builder stackingTopology(StackingTopology stackingTopology) Initializes the value for thestackingTopology
attribute.If not set, this attribute will have a default value as returned by the initializer of
stackingTopology
.- Parameters:
stackingTopology
- The value for stackingTopology- Returns:
this
builder for use in a chained invocation
-
isRepresented
Initializes the value for theisRepresented
attribute.If not set, this attribute will have a default value as returned by the initializer of
isRepresented
.- Parameters:
isRepresented
- The value for isRepresented- Returns:
this
builder for use in a chained invocation
-
shear
Initializes the value for theshear
attribute.- Parameters:
shear
- The value for shear- Returns:
this
builder for use in a chained invocation
-
stretch
Initializes the value for thestretch
attribute.- Parameters:
stretch
- The value for stretch- Returns:
this
builder for use in a chained invocation
-
stagger
Initializes the value for thestagger
attribute.- Parameters:
stagger
- The value for stagger- Returns:
this
builder for use in a chained invocation
-
buckle
Initializes the value for thebuckle
attribute.- Parameters:
buckle
- The value for buckle- Returns:
this
builder for use in a chained invocation
-
propeller
Initializes the value for thepropeller
attribute.- Parameters:
propeller
- The value for propeller- Returns:
this
builder for use in a chained invocation
-
opening
Initializes the value for theopening
attribute.- Parameters:
opening
- The value for opening- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableQuantifiedBasePair
.- Returns:
- An immutable instance of QuantifiedBasePair
- Throws:
IllegalStateException
- if any required attributes are missing
-