public static final class OctTreeConfigurationL.Builder extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
OctTreeConfigurationL |
build()
Builds a new
OctTreeConfigurationL. |
OctTreeConfigurationL.Builder |
from(OctTreeConfigurationLType instance)
Fill a builder with attribute values from the provided
OctTreeConfigurationLType instance. |
OctTreeConfigurationL.Builder |
setMinimumOctantDepth(long minimumOctantDepth)
Initializes the value for the
minimumOctantDepth attribute. |
OctTreeConfigurationL.Builder |
setMinimumOctantHeight(long minimumOctantHeight)
Initializes the value for the
minimumOctantHeight attribute. |
OctTreeConfigurationL.Builder |
setMinimumOctantWidth(long minimumOctantWidth)
Initializes the value for the
minimumOctantWidth attribute. |
OctTreeConfigurationL.Builder |
setTrimOnRemove(boolean trimOnRemove)
Initializes the value for the
trimOnRemove attribute. |
OctTreeConfigurationL.Builder |
setVolume(com.io7m.jregions.core.unparameterized.volumes.VolumeL volume)
Initializes the value for the
volume attribute. |
public final OctTreeConfigurationL.Builder from(OctTreeConfigurationLType instance)
OctTreeConfigurationLType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final OctTreeConfigurationL.Builder setVolume(com.io7m.jregions.core.unparameterized.volumes.VolumeL volume)
volume attribute.volume - The value for volumethis builder for use in a chained invocationpublic final OctTreeConfigurationL.Builder setMinimumOctantWidth(long minimumOctantWidth)
minimumOctantWidth attribute.
If not set, this attribute will have a default value as returned by the initializer of minimumOctantWidth.
minimumOctantWidth - The value for minimumOctantWidththis builder for use in a chained invocationpublic final OctTreeConfigurationL.Builder setMinimumOctantHeight(long minimumOctantHeight)
minimumOctantHeight attribute.
If not set, this attribute will have a default value as returned by the initializer of minimumOctantHeight.
minimumOctantHeight - The value for minimumOctantHeightthis builder for use in a chained invocationpublic final OctTreeConfigurationL.Builder setMinimumOctantDepth(long minimumOctantDepth)
minimumOctantDepth attribute.
If not set, this attribute will have a default value as returned by the initializer of minimumOctantDepth.
minimumOctantDepth - The value for minimumOctantDepththis builder for use in a chained invocationpublic final OctTreeConfigurationL.Builder setTrimOnRemove(boolean trimOnRemove)
trimOnRemove attribute.
If not set, this attribute will have a default value as returned by the initializer of trimOnRemove.
trimOnRemove - The value for trimOnRemovethis builder for use in a chained invocationpublic OctTreeConfigurationL build()
OctTreeConfigurationL.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com