Class ImmutableBasePairParameters.Builder

  • Enclosing class:
    ImmutableBasePairParameters

    @NotThreadSafe
    public static final class ImmutableBasePairParameters.Builder
    extends Object
    Builds instances of type ImmutableBasePairParameters. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final ImmutableBasePairParameters.Builder from​(BasePairParameters instance)
        Fill a builder with attribute values from the provided BasePairParameters instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • shear

        public final ImmutableBasePairParameters.Builder shear​(double shear)
        Initializes the value for the shear attribute.
        Parameters:
        shear - The value for shear
        Returns:
        this builder for use in a chained invocation
      • stretch

        public final ImmutableBasePairParameters.Builder stretch​(double stretch)
        Initializes the value for the stretch attribute.
        Parameters:
        stretch - The value for stretch
        Returns:
        this builder for use in a chained invocation
      • stagger

        public final ImmutableBasePairParameters.Builder stagger​(double stagger)
        Initializes the value for the stagger attribute.
        Parameters:
        stagger - The value for stagger
        Returns:
        this builder for use in a chained invocation
      • propeller

        public final ImmutableBasePairParameters.Builder propeller​(Angle propeller)
        Initializes the value for the propeller attribute.
        Parameters:
        propeller - The value for propeller
        Returns:
        this builder for use in a chained invocation
      • interBaseAngle

        public final ImmutableBasePairParameters.Builder interBaseAngle​(Angle interBaseAngle)
        Initializes the value for the interBaseAngle attribute.
        Parameters:
        interBaseAngle - The value for interBaseAngle
        Returns:
        this builder for use in a chained invocation