Package pl.poznan.put.structure
Class ImmutableQuantifiedBasePair
- java.lang.Object
-
- pl.poznan.put.structure.QuantifiedBasePair
-
- pl.poznan.put.structure.ImmutableQuantifiedBasePair
-
- All Implemented Interfaces:
Serializable,Comparable<ClassifiedBasePair>,ClassifiedBasePair
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableQuantifiedBasePair extends QuantifiedBasePair
Immutable implementation ofQuantifiedBasePair.Use the builder to create immutable instances:
ImmutableQuantifiedBasePair.builder(). Use the static factory method to create immutable instances:ImmutableQuantifiedBasePair.of().- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableQuantifiedBasePair.BuilderBuilds instances of typeImmutableQuantifiedBasePair.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BasePairbasePair()BPhbph()BRbr()doublebuckle()static ImmutableQuantifiedBasePair.Builderbuilder()Creates a builder forImmutableQuantifiedBasePair.static ImmutableQuantifiedBasePaircopyOf(QuantifiedBasePair instance)Creates an immutable copy of aQuantifiedBasePairvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableQuantifiedBasePairthat have equal attribute values.inthashCode()Computes a hash code from attributes:basePair,interactionType,saenger,leontisWesthof,bph,br.InteractionTypeinteractionType()booleanisRepresented()LeontisWesthofleontisWesthof()static ImmutableQuantifiedBasePairof(BasePair basePair, double shear, double stretch, double stagger, double buckle, double propeller, double opening)Construct a new immutableQuantifiedBasePairinstance.doubleopening()doublepropeller()Saengersaenger()doubleshear()doublestagger()doublestretch()StringtoString()Prints the immutable valueQuantifiedBasePairwith attribute values.ImmutableQuantifiedBasePairwithBasePair(BasePair value)Copy the current immutable object by setting a value for thebasePairattribute.ImmutableQuantifiedBasePairwithBph(BPh value)Copy the current immutable object by setting a value for thebphattribute.ImmutableQuantifiedBasePairwithBr(BR value)Copy the current immutable object by setting a value for thebrattribute.ImmutableQuantifiedBasePairwithBuckle(double value)Copy the current immutable object by setting a value for thebuckleattribute.ImmutableQuantifiedBasePairwithInteractionType(InteractionType value)Copy the current immutable object by setting a value for theinteractionTypeattribute.ImmutableQuantifiedBasePairwithIsRepresented(boolean value)Copy the current immutable object by setting a value for theisRepresentedattribute.ImmutableQuantifiedBasePairwithLeontisWesthof(LeontisWesthof value)Copy the current immutable object by setting a value for theleontisWesthofattribute.ImmutableQuantifiedBasePairwithOpening(double value)Copy the current immutable object by setting a value for theopeningattribute.ImmutableQuantifiedBasePairwithPropeller(double value)Copy the current immutable object by setting a value for thepropellerattribute.ImmutableQuantifiedBasePairwithSaenger(Saenger value)Copy the current immutable object by setting a value for thesaengerattribute.ImmutableQuantifiedBasePairwithShear(double value)Copy the current immutable object by setting a value for theshearattribute.ImmutableQuantifiedBasePairwithStagger(double value)Copy the current immutable object by setting a value for thestaggerattribute.ImmutableQuantifiedBasePairwithStretch(double value)Copy the current immutable object by setting a value for thestretchattribute.-
Methods inherited from class pl.poznan.put.structure.QuantifiedBasePair
invert
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface pl.poznan.put.structure.ClassifiedBasePair
compareTo, generateComment, isBasePhosphate, isBaseRibose, isCanonical, isNonCanonical, isPairing, isStacking
-
-
-
-
Method Detail
-
basePair
public BasePair basePair()
- Specified by:
basePairin interfaceClassifiedBasePair- Specified by:
basePairin classQuantifiedBasePair- Returns:
- The value of the
basePairattribute
-
interactionType
public InteractionType interactionType()
- Specified by:
interactionTypein interfaceClassifiedBasePair- Overrides:
interactionTypein classQuantifiedBasePair- Returns:
- The value of the
interactionTypeattribute
-
saenger
public Saenger saenger()
- Specified by:
saengerin interfaceClassifiedBasePair- Overrides:
saengerin classQuantifiedBasePair- Returns:
- The value of the
saengerattribute
-
leontisWesthof
public LeontisWesthof leontisWesthof()
- Specified by:
leontisWesthofin interfaceClassifiedBasePair- Overrides:
leontisWesthofin classQuantifiedBasePair- Returns:
- The value of the
leontisWesthofattribute
-
bph
public BPh bph()
- Specified by:
bphin interfaceClassifiedBasePair- Overrides:
bphin classQuantifiedBasePair- Returns:
- The value of the
bphattribute
-
br
public BR br()
- Specified by:
brin interfaceClassifiedBasePair- Overrides:
brin classQuantifiedBasePair- Returns:
- The value of the
brattribute
-
isRepresented
public boolean isRepresented()
- Specified by:
isRepresentedin interfaceClassifiedBasePair- Overrides:
isRepresentedin classQuantifiedBasePair- Returns:
- The value of the
isRepresentedattribute
-
shear
public double shear()
- Specified by:
shearin classQuantifiedBasePair- Returns:
- The value of shear parameter.
-
stretch
public double stretch()
- Specified by:
stretchin classQuantifiedBasePair- Returns:
- The value of stretch parameter.
-
stagger
public double stagger()
- Specified by:
staggerin classQuantifiedBasePair- Returns:
- The value of stagger parameter.
-
buckle
public double buckle()
- Specified by:
bucklein classQuantifiedBasePair- Returns:
- The value of buckle parameter.
-
propeller
public double propeller()
- Specified by:
propellerin classQuantifiedBasePair- Returns:
- The value of propeller parameter.
-
opening
public double opening()
- Specified by:
openingin classQuantifiedBasePair- Returns:
- The value of opening parameter.
-
withBasePair
public final ImmutableQuantifiedBasePair withBasePair(BasePair value)
Copy the current immutable object by setting a value for thebasePairattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for basePair- Returns:
- A modified copy of the
thisobject
-
withInteractionType
public final ImmutableQuantifiedBasePair withInteractionType(InteractionType value)
Copy the current immutable object by setting a value for theinteractionTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for interactionType- Returns:
- A modified copy of the
thisobject
-
withSaenger
public final ImmutableQuantifiedBasePair withSaenger(Saenger value)
Copy the current immutable object by setting a value for thesaengerattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for saenger- Returns:
- A modified copy of the
thisobject
-
withLeontisWesthof
public final ImmutableQuantifiedBasePair withLeontisWesthof(LeontisWesthof value)
Copy the current immutable object by setting a value for theleontisWesthofattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for leontisWesthof- Returns:
- A modified copy of the
thisobject
-
withBph
public final ImmutableQuantifiedBasePair withBph(BPh value)
Copy the current immutable object by setting a value for thebphattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for bph- Returns:
- A modified copy of the
thisobject
-
withBr
public final ImmutableQuantifiedBasePair withBr(BR value)
Copy the current immutable object by setting a value for thebrattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for br- Returns:
- A modified copy of the
thisobject
-
withIsRepresented
public final ImmutableQuantifiedBasePair withIsRepresented(boolean value)
Copy the current immutable object by setting a value for theisRepresentedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isRepresented- Returns:
- A modified copy of the
thisobject
-
withShear
public final ImmutableQuantifiedBasePair withShear(double value)
Copy the current immutable object by setting a value for theshearattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for shear- Returns:
- A modified copy of the
thisobject
-
withStretch
public final ImmutableQuantifiedBasePair withStretch(double value)
Copy the current immutable object by setting a value for thestretchattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stretch- Returns:
- A modified copy of the
thisobject
-
withStagger
public final ImmutableQuantifiedBasePair withStagger(double value)
Copy the current immutable object by setting a value for thestaggerattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stagger- Returns:
- A modified copy of the
thisobject
-
withBuckle
public final ImmutableQuantifiedBasePair withBuckle(double value)
Copy the current immutable object by setting a value for thebuckleattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for buckle- Returns:
- A modified copy of the
thisobject
-
withPropeller
public final ImmutableQuantifiedBasePair withPropeller(double value)
Copy the current immutable object by setting a value for thepropellerattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for propeller- Returns:
- A modified copy of the
thisobject
-
withOpening
public final ImmutableQuantifiedBasePair withOpening(double value)
Copy the current immutable object by setting a value for theopeningattribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for opening- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableQuantifiedBasePairthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:basePair,interactionType,saenger,leontisWesthof,bph,br.
-
toString
public String toString()
Prints the immutable valueQuantifiedBasePairwith attribute values.
-
of
public static ImmutableQuantifiedBasePair of(BasePair basePair, double shear, double stretch, double stagger, double buckle, double propeller, double opening)
Construct a new immutableQuantifiedBasePairinstance.- Parameters:
basePair- The value for thebasePairattributeshear- The value for theshearattributestretch- The value for thestretchattributestagger- The value for thestaggerattributebuckle- The value for thebuckleattributepropeller- The value for thepropellerattributeopening- The value for theopeningattribute- Returns:
- An immutable QuantifiedBasePair instance
-
copyOf
public static ImmutableQuantifiedBasePair copyOf(QuantifiedBasePair instance)
Creates an immutable copy of aQuantifiedBasePairvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable QuantifiedBasePair instance
-
builder
public static ImmutableQuantifiedBasePair.Builder builder()
Creates a builder forImmutableQuantifiedBasePair.ImmutableQuantifiedBasePair.builder() .basePair(pl.poznan.put.structure.BasePair) // requiredbasePair.interactionType(pl.poznan.put.rna.InteractionType) // optionalinteractionType.saenger(pl.poznan.put.notation.Saenger) // optionalsaenger.leontisWesthof(pl.poznan.put.notation.LeontisWesthof) // optionalleontisWesthof.bph(pl.poznan.put.notation.BPh) // optionalbph.br(pl.poznan.put.notation.BR) // optionalbr.isRepresented(boolean) // optionalisRepresented.shear(double) // requiredshear.stretch(double) // requiredstretch.stagger(double) // requiredstagger.buckle(double) // requiredbuckle.propeller(double) // requiredpropeller.opening(double) // requiredopening.build();- Returns:
- A new ImmutableQuantifiedBasePair builder
-
-