Package pl.poznan.put.rna
Class ImmutableBasePairParameters
- java.lang.Object
-
- pl.poznan.put.rna.BasePairParameters
-
- pl.poznan.put.rna.ImmutableBasePairParameters
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableBasePairParameters extends BasePairParameters
Immutable implementation ofBasePairParameters.Use the builder to create immutable instances:
ImmutableBasePairParameters.builder(). Use the static factory method to create immutable instances:ImmutableBasePairParameters.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableBasePairParameters.BuilderBuilds instances of typeImmutableBasePairParameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Anglebuckle()static ImmutableBasePairParameters.Builderbuilder()Creates a builder forImmutableBasePairParameters.static ImmutableBasePairParameterscopyOf(BasePairParameters instance)Creates an immutable copy of aBasePairParametersvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableBasePairParametersthat have equal attribute values.inthashCode()Computes a hash code from attributes:shear,stretch,stagger,buckle,propeller,opening,interBaseAngle.AngleinterBaseAngle()static ImmutableBasePairParametersof(double shear, double stretch, double stagger, Angle buckle, Angle propeller, Angle opening, Angle interBaseAngle)Construct a new immutableBasePairParametersinstance.Angleopening()Anglepropeller()doubleshear()doublestagger()doublestretch()StringtoString()Prints the immutable valueBasePairParameterswith attribute values.ImmutableBasePairParameterswithBuckle(Angle value)Copy the current immutable object by setting a value for thebuckleattribute.ImmutableBasePairParameterswithInterBaseAngle(Angle value)Copy the current immutable object by setting a value for theinterBaseAngleattribute.ImmutableBasePairParameterswithOpening(Angle value)Copy the current immutable object by setting a value for theopeningattribute.ImmutableBasePairParameterswithPropeller(Angle value)Copy the current immutable object by setting a value for thepropellerattribute.ImmutableBasePairParameterswithShear(double value)Copy the current immutable object by setting a value for theshearattribute.ImmutableBasePairParameterswithStagger(double value)Copy the current immutable object by setting a value for thestaggerattribute.ImmutableBasePairParameterswithStretch(double value)Copy the current immutable object by setting a value for thestretchattribute.-
Methods inherited from class pl.poznan.put.rna.BasePairParameters
of
-
-
-
-
Method Detail
-
shear
public double shear()
- Specified by:
shearin classBasePairParameters- Returns:
- The value of the
shearattribute
-
stretch
public double stretch()
- Specified by:
stretchin classBasePairParameters- Returns:
- The value of the
stretchattribute
-
stagger
public double stagger()
- Specified by:
staggerin classBasePairParameters- Returns:
- The value of the
staggerattribute
-
buckle
public Angle buckle()
- Specified by:
bucklein classBasePairParameters- Returns:
- The value of the
buckleattribute
-
propeller
public Angle propeller()
- Specified by:
propellerin classBasePairParameters- Returns:
- The value of the
propellerattribute
-
opening
public Angle opening()
- Specified by:
openingin classBasePairParameters- Returns:
- The value of the
openingattribute
-
interBaseAngle
public Angle interBaseAngle()
- Specified by:
interBaseAnglein classBasePairParameters- Returns:
- The value of the
interBaseAngleattribute
-
withShear
public final ImmutableBasePairParameters 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 ImmutableBasePairParameters 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 ImmutableBasePairParameters 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 ImmutableBasePairParameters withBuckle(Angle value)
Copy the current immutable object by setting a value for thebuckleattribute. A shallow reference equality check is 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 ImmutableBasePairParameters withPropeller(Angle value)
Copy the current immutable object by setting a value for thepropellerattribute. A shallow reference equality check is 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 ImmutableBasePairParameters withOpening(Angle value)
Copy the current immutable object by setting a value for theopeningattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for opening- Returns:
- A modified copy of the
thisobject
-
withInterBaseAngle
public final ImmutableBasePairParameters withInterBaseAngle(Angle value)
Copy the current immutable object by setting a value for theinterBaseAngleattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for interBaseAngle- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableBasePairParametersthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:shear,stretch,stagger,buckle,propeller,opening,interBaseAngle.
-
toString
public String toString()
Prints the immutable valueBasePairParameterswith attribute values.
-
of
public static ImmutableBasePairParameters of(double shear, double stretch, double stagger, Angle buckle, Angle propeller, Angle opening, Angle interBaseAngle)
Construct a new immutableBasePairParametersinstance.- Parameters:
shear- The value for theshearattributestretch- The value for thestretchattributestagger- The value for thestaggerattributebuckle- The value for thebuckleattributepropeller- The value for thepropellerattributeopening- The value for theopeningattributeinterBaseAngle- The value for theinterBaseAngleattribute- Returns:
- An immutable BasePairParameters instance
-
copyOf
public static ImmutableBasePairParameters copyOf(BasePairParameters instance)
Creates an immutable copy of aBasePairParametersvalue. 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 BasePairParameters instance
-
builder
public static ImmutableBasePairParameters.Builder builder()
Creates a builder forImmutableBasePairParameters.ImmutableBasePairParameters.builder() .shear(double) // requiredshear.stretch(double) // requiredstretch.stagger(double) // requiredstagger.buckle(pl.poznan.put.circular.Angle) // requiredbuckle.propeller(pl.poznan.put.circular.Angle) // requiredpropeller.opening(pl.poznan.put.circular.Angle) // requiredopening.interBaseAngle(pl.poznan.put.circular.Angle) // requiredinterBaseAngle.build();- Returns:
- A new ImmutableBasePairParameters builder
-
-