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 class
Builds instances of typeImmutableQuantifiedBasePair
. -
Method Summary
Modifier and TypeMethodDescriptionbasePair()
bph()
br()
double
buckle()
builder()
Creates a builder forImmutableQuantifiedBasePair
.static ImmutableQuantifiedBasePair
copyOf
(QuantifiedBasePair instance) Creates an immutable copy of aQuantifiedBasePair
value.boolean
This instance is equal to all instances ofImmutableQuantifiedBasePair
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:basePair
,interactionType
,saenger
,leontisWesthof
,bph
,br
,stackingTopology
.boolean
static ImmutableQuantifiedBasePair
of
(BasePair basePair, double shear, double stretch, double stagger, double buckle, double propeller, double opening) Construct a new immutableQuantifiedBasePair
instance.double
opening()
double
saenger()
double
shear()
double
stagger()
double
stretch()
toString()
Prints the immutable valueQuantifiedBasePair
with attribute values.withBasePair
(BasePair value) Copy the current immutable object by setting a value for thebasePair
attribute.Copy the current immutable object by setting a value for thebph
attribute.Copy the current immutable object by setting a value for thebr
attribute.withBuckle
(double value) Copy the current immutable object by setting a value for thebuckle
attribute.Copy the current immutable object by setting a value for theinteractionType
attribute.withIsRepresented
(boolean value) Copy the current immutable object by setting a value for theisRepresented
attribute.withLeontisWesthof
(LeontisWesthof value) Copy the current immutable object by setting a value for theleontisWesthof
attribute.withOpening
(double value) Copy the current immutable object by setting a value for theopening
attribute.withPropeller
(double value) Copy the current immutable object by setting a value for thepropeller
attribute.withSaenger
(Saenger value) Copy the current immutable object by setting a value for thesaenger
attribute.withShear
(double value) Copy the current immutable object by setting a value for theshear
attribute.Copy the current immutable object by setting a value for thestackingTopology
attribute.withStagger
(double value) Copy the current immutable object by setting a value for thestagger
attribute.withStretch
(double value) Copy the current immutable object by setting a value for thestretch
attribute.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 Details
-
basePair
- Specified by:
basePair
in interfaceClassifiedBasePair
- Specified by:
basePair
in classQuantifiedBasePair
- Returns:
- The value of the
basePair
attribute
-
interactionType
- Specified by:
interactionType
in interfaceClassifiedBasePair
- Overrides:
interactionType
in classQuantifiedBasePair
- Returns:
- The value of the
interactionType
attribute
-
saenger
- Specified by:
saenger
in interfaceClassifiedBasePair
- Overrides:
saenger
in classQuantifiedBasePair
- Returns:
- The value of the
saenger
attribute
-
leontisWesthof
- Specified by:
leontisWesthof
in interfaceClassifiedBasePair
- Overrides:
leontisWesthof
in classQuantifiedBasePair
- Returns:
- The value of the
leontisWesthof
attribute
-
bph
- Specified by:
bph
in interfaceClassifiedBasePair
- Overrides:
bph
in classQuantifiedBasePair
- Returns:
- The value of the
bph
attribute
-
br
- Specified by:
br
in interfaceClassifiedBasePair
- Overrides:
br
in classQuantifiedBasePair
- Returns:
- The value of the
br
attribute
-
stackingTopology
- Specified by:
stackingTopology
in interfaceClassifiedBasePair
- Overrides:
stackingTopology
in classQuantifiedBasePair
- Returns:
- The value of the
stackingTopology
attribute
-
isRepresented
public boolean isRepresented()- Specified by:
isRepresented
in interfaceClassifiedBasePair
- Overrides:
isRepresented
in classQuantifiedBasePair
- Returns:
- The value of the
isRepresented
attribute
-
shear
public double shear()- Specified by:
shear
in classQuantifiedBasePair
- Returns:
- The value of shear parameter.
-
stretch
public double stretch()- Specified by:
stretch
in classQuantifiedBasePair
- Returns:
- The value of stretch parameter.
-
stagger
public double stagger()- Specified by:
stagger
in classQuantifiedBasePair
- Returns:
- The value of stagger parameter.
-
buckle
public double buckle()- Specified by:
buckle
in classQuantifiedBasePair
- Returns:
- The value of buckle parameter.
-
propeller
public double propeller()- Specified by:
propeller
in classQuantifiedBasePair
- Returns:
- The value of propeller parameter.
-
opening
public double opening()- Specified by:
opening
in classQuantifiedBasePair
- Returns:
- The value of opening parameter.
-
withBasePair
Copy the current immutable object by setting a value for thebasePair
attribute. 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
this
object
-
withInteractionType
Copy the current immutable object by setting a value for theinteractionType
attribute. 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
this
object
-
withSaenger
Copy the current immutable object by setting a value for thesaenger
attribute. 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
this
object
-
withLeontisWesthof
Copy the current immutable object by setting a value for theleontisWesthof
attribute. 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
this
object
-
withBph
Copy the current immutable object by setting a value for thebph
attribute. 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
this
object
-
withBr
Copy the current immutable object by setting a value for thebr
attribute. 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
this
object
-
withStackingTopology
Copy the current immutable object by setting a value for thestackingTopology
attribute. 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
this
object
-
withIsRepresented
Copy the current immutable object by setting a value for theisRepresented
attribute. 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
this
object
-
withShear
Copy the current immutable object by setting a value for theshear
attribute. 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
this
object
-
withStretch
Copy the current immutable object by setting a value for thestretch
attribute. 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
this
object
-
withStagger
Copy the current immutable object by setting a value for thestagger
attribute. 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
this
object
-
withBuckle
Copy the current immutable object by setting a value for thebuckle
attribute. 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
this
object
-
withPropeller
Copy the current immutable object by setting a value for thepropeller
attribute. 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
this
object
-
withOpening
Copy the current immutable object by setting a value for theopening
attribute. 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
this
object
-
equals
This instance is equal to all instances ofImmutableQuantifiedBasePair
that 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 valueQuantifiedBasePair
with attribute values. -
of
public static ImmutableQuantifiedBasePair of(BasePair basePair, double shear, double stretch, double stagger, double buckle, double propeller, double opening) Construct a new immutableQuantifiedBasePair
instance.- Parameters:
basePair
- The value for thebasePair
attributeshear
- The value for theshear
attributestretch
- The value for thestretch
attributestagger
- The value for thestagger
attributebuckle
- The value for thebuckle
attributepropeller
- The value for thepropeller
attributeopening
- The value for theopening
attribute- Returns:
- An immutable QuantifiedBasePair instance
-
copyOf
Creates an immutable copy of aQuantifiedBasePair
value. 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) // required
basePair
.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
-