Package pl.poznan.put.structure
Class ImmutableAnalyzedBasePair.Builder
- java.lang.Object
-
- pl.poznan.put.structure.ImmutableAnalyzedBasePair.Builder
-
- Enclosing class:
- ImmutableAnalyzedBasePair
@NotThreadSafe public static final class ImmutableAnalyzedBasePair.Builder extends Object
Builds instances of typeImmutableAnalyzedBasePair. 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 ImmutableAnalyzedBasePair.BuilderbasePair(BasePair basePair)Initializes the value for thebasePairattribute.ImmutableAnalyzedBasePair.Builderbph(BPh bph)Initializes the value for thebphattribute.ImmutableAnalyzedBasePair.Builderbr(BR br)Initializes the value for thebrattribute.ImmutableAnalyzedBasePairbuild()Builds a newImmutableAnalyzedBasePair.ImmutableAnalyzedBasePair.Builderfrom(AnalyzedBasePair instance)Fill a builder with attribute values from the providedpl.poznan.put.structure.AnalyzedBasePairinstance.ImmutableAnalyzedBasePair.Builderfrom(ClassifiedBasePair instance)Fill a builder with attribute values from the providedpl.poznan.put.structure.ClassifiedBasePairinstance.ImmutableAnalyzedBasePair.BuilderinteractionType(InteractionType interactionType)Initializes the value for theinteractionTypeattribute.ImmutableAnalyzedBasePair.BuilderisRepresented(boolean isRepresented)Initializes the value for theisRepresentedattribute.ImmutableAnalyzedBasePair.BuilderleontisWesthof(LeontisWesthof leontisWesthof)Initializes the value for theleontisWesthofattribute.ImmutableAnalyzedBasePair.Buildersaenger(Saenger saenger)Initializes the value for thesaengerattribute.
-
-
-
Method Detail
-
from
public final ImmutableAnalyzedBasePair.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 ImmutableAnalyzedBasePair.Builder from(AnalyzedBasePair instance)
Fill a builder with attribute values from the providedpl.poznan.put.structure.AnalyzedBasePairinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
basePair
public final ImmutableAnalyzedBasePair.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 ImmutableAnalyzedBasePair.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 ImmutableAnalyzedBasePair.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 ImmutableAnalyzedBasePair.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 ImmutableAnalyzedBasePair.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 ImmutableAnalyzedBasePair.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 ImmutableAnalyzedBasePair.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
-
build
public ImmutableAnalyzedBasePair build()
Builds a newImmutableAnalyzedBasePair.- Returns:
- An immutable instance of AnalyzedBasePair
- Throws:
IllegalStateException- if any required attributes are missing
-
-