Class OctTreeConfigurationL

    • Method Detail

      • volume

        public com.io7m.jregions.core.unparameterized.volumes.VolumeL volume()
        Specified by:
        volume in interface OctTreeConfigurationLType
        Returns:
        The maximum bounding volume of the tree
      • trimOnRemove

        public boolean trimOnRemove()
        Specified by:
        trimOnRemove in interface OctTreeConfigurationLType
        Returns:
        true iff the implementation should attempt to trim empty leaf nodes when an item is removed
      • withVolume

        public final OctTreeConfigurationL withVolume​(com.io7m.jregions.core.unparameterized.volumes.VolumeL value)
        Copy the current immutable object by setting a value for the volume attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for volume
        Returns:
        A modified copy of the this object
      • withMinimumOctantWidth

        public final OctTreeConfigurationL withMinimumOctantWidth​(long value)
        Copy the current immutable object by setting a value for the minimumOctantWidth attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for minimumOctantWidth
        Returns:
        A modified copy of the this object
      • withMinimumOctantHeight

        public final OctTreeConfigurationL withMinimumOctantHeight​(long value)
        Copy the current immutable object by setting a value for the minimumOctantHeight attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for minimumOctantHeight
        Returns:
        A modified copy of the this object
      • withMinimumOctantDepth

        public final OctTreeConfigurationL withMinimumOctantDepth​(long value)
        Copy the current immutable object by setting a value for the minimumOctantDepth attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for minimumOctantDepth
        Returns:
        A modified copy of the this object
      • withTrimOnRemove

        public final OctTreeConfigurationL withTrimOnRemove​(boolean value)
        Copy the current immutable object by setting a value for the trimOnRemove attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for trimOnRemove
        Returns:
        A modified copy of the this object
      • equals

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

        public int hashCode()
        Computes a hash code from attributes: volume, minimumOctantWidth, minimumOctantHeight, minimumOctantDepth, trimOnRemove.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

        public static OctTreeConfigurationL of​(com.io7m.jregions.core.unparameterized.volumes.VolumeL volume,
                                               long minimumOctantWidth,
                                               long minimumOctantHeight,
                                               long minimumOctantDepth,
                                               boolean trimOnRemove)
        Construct a new immutable OctTreeConfigurationL instance.
        Parameters:
        volume - The value for the volume attribute
        minimumOctantWidth - The value for the minimumOctantWidth attribute
        minimumOctantHeight - The value for the minimumOctantHeight attribute
        minimumOctantDepth - The value for the minimumOctantDepth attribute
        trimOnRemove - The value for the trimOnRemove attribute
        Returns:
        An immutable OctTreeConfigurationL instance
      • copyOf

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