Class OctTreeConfigurationL.Builder

  • Enclosing class:
    OctTreeConfigurationL

    public static final class OctTreeConfigurationL.Builder
    extends java.lang.Object
    Builds instances of type OctTreeConfigurationL. 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 OctTreeConfigurationL.Builder from​(OctTreeConfigurationLType instance)
        Fill a builder with attribute values from the provided OctTreeConfigurationLType 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
      • setVolume

        public final OctTreeConfigurationL.Builder setVolume​(com.io7m.jregions.core.unparameterized.volumes.VolumeL volume)
        Initializes the value for the volume attribute.
        Parameters:
        volume - The value for volume
        Returns:
        this builder for use in a chained invocation
      • setMinimumOctantWidth

        public final OctTreeConfigurationL.Builder setMinimumOctantWidth​(long minimumOctantWidth)
        Initializes the value for the minimumOctantWidth attribute.

        If not set, this attribute will have a default value as returned by the initializer of minimumOctantWidth.

        Parameters:
        minimumOctantWidth - The value for minimumOctantWidth
        Returns:
        this builder for use in a chained invocation
      • setMinimumOctantHeight

        public final OctTreeConfigurationL.Builder setMinimumOctantHeight​(long minimumOctantHeight)
        Initializes the value for the minimumOctantHeight attribute.

        If not set, this attribute will have a default value as returned by the initializer of minimumOctantHeight.

        Parameters:
        minimumOctantHeight - The value for minimumOctantHeight
        Returns:
        this builder for use in a chained invocation
      • setMinimumOctantDepth

        public final OctTreeConfigurationL.Builder setMinimumOctantDepth​(long minimumOctantDepth)
        Initializes the value for the minimumOctantDepth attribute.

        If not set, this attribute will have a default value as returned by the initializer of minimumOctantDepth.

        Parameters:
        minimumOctantDepth - The value for minimumOctantDepth
        Returns:
        this builder for use in a chained invocation
      • setTrimOnRemove

        public final OctTreeConfigurationL.Builder setTrimOnRemove​(boolean trimOnRemove)
        Initializes the value for the trimOnRemove attribute.

        If not set, this attribute will have a default value as returned by the initializer of trimOnRemove.

        Parameters:
        trimOnRemove - The value for trimOnRemove
        Returns:
        this builder for use in a chained invocation
      • build

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