Class AreaF.Builder

java.lang.Object
com.io7m.jregions.core.unparameterized.areas.AreaF.Builder
Enclosing class:
AreaF

public static final class AreaF.Builder
extends java.lang.Object
Builds instances of type AreaF. 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 Details

    • from

      public final AreaF.Builder from​(AreaValuesFType instance)
      Fill a builder with attribute values from the provided com.io7m.jregions.core.unparameterized.areas.AreaValuesFType instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final AreaF.Builder from​(AreaFType instance)
      Fill a builder with attribute values from the provided com.io7m.jregions.core.unparameterized.areas.AreaFType instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setMinimumX

      public final AreaF.Builder setMinimumX​(float minimumX)
      Initializes the value for the minimumX attribute.
      Parameters:
      minimumX - The value for minimumX
      Returns:
      this builder for use in a chained invocation
    • setMaximumX

      public final AreaF.Builder setMaximumX​(float maximumX)
      Initializes the value for the maximumX attribute.
      Parameters:
      maximumX - The value for maximumX
      Returns:
      this builder for use in a chained invocation
    • setMinimumY

      public final AreaF.Builder setMinimumY​(float minimumY)
      Initializes the value for the minimumY attribute.
      Parameters:
      minimumY - The value for minimumY
      Returns:
      this builder for use in a chained invocation
    • setMaximumY

      public final AreaF.Builder setMaximumY​(float maximumY)
      Initializes the value for the maximumY attribute.
      Parameters:
      maximumY - The value for maximumY
      Returns:
      this builder for use in a chained invocation
    • build

      public AreaF build()
      Builds a new AreaF.
      Returns:
      An immutable instance of AreaF
      Throws:
      java.lang.IllegalStateException - if any required attributes are missing