public static final class OctTreeConfigurationI.Builder extends Object
OctTreeConfigurationI.
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 |
|---|---|
OctTreeConfigurationI |
build()
Builds a new
OctTreeConfigurationI. |
OctTreeConfigurationI.Builder |
from(OctTreeConfigurationIType instance)
Fill a builder with attribute values from the provided
OctTreeConfigurationIType instance. |
OctTreeConfigurationI.Builder |
setMinimumOctantDepth(int minimumOctantDepth)
Initializes the value for the
minimumOctantDepth attribute. |
OctTreeConfigurationI.Builder |
setMinimumOctantHeight(int minimumOctantHeight)
Initializes the value for the
minimumOctantHeight attribute. |
OctTreeConfigurationI.Builder |
setMinimumOctantWidth(int minimumOctantWidth)
Initializes the value for the
minimumOctantWidth attribute. |
OctTreeConfigurationI.Builder |
setTrimOnRemove(boolean trimOnRemove)
Initializes the value for the
trimOnRemove attribute. |
OctTreeConfigurationI.Builder |
setVolume(com.io7m.jregions.core.unparameterized.volumes.VolumeI volume)
Initializes the value for the
volume attribute. |
public final OctTreeConfigurationI.Builder from(OctTreeConfigurationIType instance)
OctTreeConfigurationIType 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 OctTreeConfigurationI.Builder setVolume(com.io7m.jregions.core.unparameterized.volumes.VolumeI volume)
volume attribute.volume - The value for volumethis builder for use in a chained invocationpublic final OctTreeConfigurationI.Builder setMinimumOctantWidth(int 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 OctTreeConfigurationI.Builder setMinimumOctantHeight(int 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 OctTreeConfigurationI.Builder setMinimumOctantDepth(int 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 OctTreeConfigurationI.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 OctTreeConfigurationI build()
OctTreeConfigurationI.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com