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 of
QuantifiedBasePair.
Use the builder to create immutable instances:
ImmutableQuantifiedBasePair.builder().
Use the static factory method to create immutable instances:
ImmutableQuantifiedBasePair.of().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableQuantifiedBasePair. -
Method Summary
Modifier and TypeMethodDescriptionbasePair()bph()br()doublebuckle()builder()Creates a builder forImmutableQuantifiedBasePair.static ImmutableQuantifiedBasePaircopyOf(QuantifiedBasePair instance) Creates an immutable copy of aQuantifiedBasePairvalue.booleanThis instance is equal to all instances ofImmutableQuantifiedBasePairthat have equal attribute values.inthashCode()Computes a hash code from attributes:basePair,interactionType,saenger,leontisWesthof,bph,br,stackingTopology.booleanstatic ImmutableQuantifiedBasePairof(BasePair basePair, double shear, double stretch, double stagger, double buckle, double propeller, double opening) Construct a new immutableQuantifiedBasePairinstance.doubleopening()doublesaenger()doubleshear()doublestagger()doublestretch()toString()Prints the immutable valueQuantifiedBasePairwith attribute values.withBasePair(BasePair value) Copy the current immutable object by setting a value for thebasePairattribute.Copy the current immutable object by setting a value for thebphattribute.Copy the current immutable object by setting a value for thebrattribute.withBuckle(double value) Copy the current immutable object by setting a value for thebuckleattribute.Copy the current immutable object by setting a value for theinteractionTypeattribute.withIsRepresented(boolean value) Copy the current immutable object by setting a value for theisRepresentedattribute.withLeontisWesthof(LeontisWesthof value) Copy the current immutable object by setting a value for theleontisWesthofattribute.withOpening(double value) Copy the current immutable object by setting a value for theopeningattribute.withPropeller(double value) Copy the current immutable object by setting a value for thepropellerattribute.withSaenger(Saenger value) Copy the current immutable object by setting a value for thesaengerattribute.withShear(double value) Copy the current immutable object by setting a value for theshearattribute.Copy the current immutable object by setting a value for thestackingTopologyattribute.withStagger(double value) Copy the current immutable object by setting a value for thestaggerattribute.withStretch(double value) Copy the current immutable object by setting a value for thestretchattribute.Methods inherited from class pl.poznan.put.structure.QuantifiedBasePair
invertMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface pl.poznan.put.structure.ClassifiedBasePair
compareTo, generateComment, isBasePhosphate, isBaseRibose, isCanonical, isNonCanonical, isPairing, isStacking
-
Method Details
-
basePair
- Specified by:
basePairin interfaceClassifiedBasePair- Specified by:
basePairin classQuantifiedBasePair- Returns:
- The value of the
basePairattribute
-
interactionType
- Specified by:
interactionTypein interfaceClassifiedBasePair- Overrides:
interactionTypein classQuantifiedBasePair- Returns:
- The value of the
interactionTypeattribute
-
saenger
- Specified by:
saengerin interfaceClassifiedBasePair- Overrides:
saengerin classQuantifiedBasePair- Returns:
- The value of the
saengerattribute
-
leontisWesthof
- Specified by:
leontisWesthofin interfaceClassifiedBasePair- Overrides:
leontisWesthofin classQuantifiedBasePair- Returns:
- The value of the
leontisWesthofattribute
-
bph
- Specified by:
bphin interfaceClassifiedBasePair- Overrides:
bphin classQuantifiedBasePair- Returns:
- The value of the
bphattribute
-
br
- Specified by:
brin interfaceClassifiedBasePair- Overrides:
brin classQuantifiedBasePair- Returns:
- The value of the
brattribute
-
stackingTopology
- Specified by:
stackingTopologyin interfaceClassifiedBasePair- Overrides:
stackingTopologyin classQuantifiedBasePair- Returns:
- The value of the
stackingTopologyattribute
-
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
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
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
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
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
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
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
-
withStackingTopology
Copy the current immutable object by setting a value for thestackingTopologyattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for stackingTopology- Returns:
- A modified copy of the
thisobject
-
withIsRepresented
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
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
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
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
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
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
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
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,stackingTopology. -
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
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
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.stackingTopology(pl.poznan.put.notation.StackingTopology) // optionalstackingTopology.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
-