Package pl.poznan.put.structure
Class ImmutableQuantifiedBasePair.Builder
- java.lang.Object
-
- pl.poznan.put.structure.ImmutableQuantifiedBasePair.Builder
-
- Enclosing class:
- ImmutableQuantifiedBasePair
@NotThreadSafe public static final class ImmutableQuantifiedBasePair.Builder extends Object
Builds instances of typeImmutableQuantifiedBasePair. 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableQuantifiedBasePair.BuilderbasePair(BasePair basePair)Initializes the value for thebasePairattribute.ImmutableQuantifiedBasePair.Builderbph(BPh bph)Initializes the value for thebphattribute.ImmutableQuantifiedBasePair.Builderbr(BR br)Initializes the value for thebrattribute.ImmutableQuantifiedBasePair.Builderbuckle(double buckle)Initializes the value for thebuckleattribute.ImmutableQuantifiedBasePairbuild()Builds a newImmutableQuantifiedBasePair.ImmutableQuantifiedBasePair.Builderfrom(ClassifiedBasePair instance)Fill a builder with attribute values from the providedpl.poznan.put.structure.ClassifiedBasePairinstance.ImmutableQuantifiedBasePair.Builderfrom(QuantifiedBasePair instance)Fill a builder with attribute values from the providedpl.poznan.put.structure.QuantifiedBasePairinstance.ImmutableQuantifiedBasePair.BuilderinteractionType(InteractionType interactionType)Initializes the value for theinteractionTypeattribute.ImmutableQuantifiedBasePair.BuilderisRepresented(boolean isRepresented)Initializes the value for theisRepresentedattribute.ImmutableQuantifiedBasePair.BuilderleontisWesthof(LeontisWesthof leontisWesthof)Initializes the value for theleontisWesthofattribute.ImmutableQuantifiedBasePair.Builderopening(double opening)Initializes the value for theopeningattribute.ImmutableQuantifiedBasePair.Builderpropeller(double propeller)Initializes the value for thepropellerattribute.ImmutableQuantifiedBasePair.Buildersaenger(Saenger saenger)Initializes the value for thesaengerattribute.ImmutableQuantifiedBasePair.Buildershear(double shear)Initializes the value for theshearattribute.ImmutableQuantifiedBasePair.Builderstagger(double stagger)Initializes the value for thestaggerattribute.ImmutableQuantifiedBasePair.Builderstretch(double stretch)Initializes the value for thestretchattribute.
-
-
-
Method Detail
-
from
public final ImmutableQuantifiedBasePair.Builder from(ClassifiedBasePair instance)
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
public final ImmutableQuantifiedBasePair.Builder from(QuantifiedBasePair instance)
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
public final ImmutableQuantifiedBasePair.Builder basePair(BasePair basePair)
Initializes the value for thebasePairattribute.- Parameters:
basePair- The value for basePair- Returns:
thisbuilder for use in a chained invocation
-
interactionType
public final ImmutableQuantifiedBasePair.Builder interactionType(InteractionType 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
public final ImmutableQuantifiedBasePair.Builder saenger(Saenger 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
public final ImmutableQuantifiedBasePair.Builder leontisWesthof(LeontisWesthof 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
public final ImmutableQuantifiedBasePair.Builder bph(BPh 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
public final ImmutableQuantifiedBasePair.Builder br(BR 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
-
isRepresented
public final ImmutableQuantifiedBasePair.Builder isRepresented(boolean 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
public final ImmutableQuantifiedBasePair.Builder shear(double shear)
Initializes the value for theshearattribute.- Parameters:
shear- The value for shear- Returns:
thisbuilder for use in a chained invocation
-
stretch
public final ImmutableQuantifiedBasePair.Builder stretch(double stretch)
Initializes the value for thestretchattribute.- Parameters:
stretch- The value for stretch- Returns:
thisbuilder for use in a chained invocation
-
stagger
public final ImmutableQuantifiedBasePair.Builder stagger(double stagger)
Initializes the value for thestaggerattribute.- Parameters:
stagger- The value for stagger- Returns:
thisbuilder for use in a chained invocation
-
buckle
public final ImmutableQuantifiedBasePair.Builder buckle(double buckle)
Initializes the value for thebuckleattribute.- Parameters:
buckle- The value for buckle- Returns:
thisbuilder for use in a chained invocation
-
propeller
public final ImmutableQuantifiedBasePair.Builder propeller(double propeller)
Initializes the value for thepropellerattribute.- Parameters:
propeller- The value for propeller- Returns:
thisbuilder for use in a chained invocation
-
opening
public final ImmutableQuantifiedBasePair.Builder opening(double opening)
Initializes the value for theopeningattribute.- Parameters:
opening- The value for opening- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableQuantifiedBasePair build()
Builds a newImmutableQuantifiedBasePair.- Returns:
- An immutable instance of QuantifiedBasePair
- Throws:
IllegalStateException- if any required attributes are missing
-
-