Class ImmutableBasePairParameters


  • @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    public final class ImmutableBasePairParameters
    extends BasePairParameters
    Immutable implementation of BasePairParameters.

    Use the builder to create immutable instances: ImmutableBasePairParameters.builder(). Use the static factory method to create immutable instances: ImmutableBasePairParameters.of().

    • Method Detail

      • shear

        public double shear()
        Specified by:
        shear in class BasePairParameters
        Returns:
        The value of the shear attribute
      • stretch

        public double stretch()
        Specified by:
        stretch in class BasePairParameters
        Returns:
        The value of the stretch attribute
      • stagger

        public double stagger()
        Specified by:
        stagger in class BasePairParameters
        Returns:
        The value of the stagger attribute
      • withShear

        public final ImmutableBasePairParameters withShear​(double value)
        Copy the current immutable object by setting a value for the shear attribute. A value strict bits equality used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for shear
        Returns:
        A modified copy of the this object
      • withStretch

        public final ImmutableBasePairParameters withStretch​(double value)
        Copy the current immutable object by setting a value for the stretch attribute. A value strict bits equality used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for stretch
        Returns:
        A modified copy of the this object
      • withStagger

        public final ImmutableBasePairParameters withStagger​(double value)
        Copy the current immutable object by setting a value for the stagger attribute. A value strict bits equality used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for stagger
        Returns:
        A modified copy of the this object
      • withBuckle

        public final ImmutableBasePairParameters withBuckle​(Angle value)
        Copy the current immutable object by setting a value for the buckle attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for buckle
        Returns:
        A modified copy of the this object
      • withPropeller

        public final ImmutableBasePairParameters withPropeller​(Angle value)
        Copy the current immutable object by setting a value for the propeller attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for propeller
        Returns:
        A modified copy of the this object
      • withOpening

        public final ImmutableBasePairParameters withOpening​(Angle value)
        Copy the current immutable object by setting a value for the opening attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for opening
        Returns:
        A modified copy of the this object
      • withInterBaseAngle

        public final ImmutableBasePairParameters withInterBaseAngle​(Angle value)
        Copy the current immutable object by setting a value for the interBaseAngle attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for interBaseAngle
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableBasePairParameters that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: shear, stretch, stagger, buckle, propeller, opening, interBaseAngle.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value BasePairParameters with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • of

        public static ImmutableBasePairParameters of​(double shear,
                                                     double stretch,
                                                     double stagger,
                                                     Angle buckle,
                                                     Angle propeller,
                                                     Angle opening,
                                                     Angle interBaseAngle)
        Construct a new immutable BasePairParameters instance.
        Parameters:
        shear - The value for the shear attribute
        stretch - The value for the stretch attribute
        stagger - The value for the stagger attribute
        buckle - The value for the buckle attribute
        propeller - The value for the propeller attribute
        opening - The value for the opening attribute
        interBaseAngle - The value for the interBaseAngle attribute
        Returns:
        An immutable BasePairParameters instance
      • copyOf

        public static ImmutableBasePairParameters copyOf​(BasePairParameters instance)
        Creates an immutable copy of a BasePairParameters 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 BasePairParameters instance