Class ImmutableAnalyzedBasePair.Builder
- Enclosing class:
- ImmutableAnalyzedBasePair
ImmutableAnalyzedBasePair
.
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.build()
Builds a newImmutableAnalyzedBasePair
.from
(AnalyzedBasePair instance) Fill a builder with attribute values from the providedpl.poznan.put.structure.AnalyzedBasePair
instance.from
(ClassifiedBasePair instance) Fill a builder with attribute values from the providedpl.poznan.put.structure.ClassifiedBasePair
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.Initializes the value for thesaenger
attribute.stackingTopology
(StackingTopology stackingTopology) Initializes the value for thestackingTopology
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.AnalyzedBasePair
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
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
-
build
Builds a newImmutableAnalyzedBasePair
.- Returns:
- An immutable instance of AnalyzedBasePair
- Throws:
IllegalStateException
- if any required attributes are missing
-