public static final class R2DebugInstanceSingle.Builder extends Object
R2DebugInstanceSingle
.
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 |
---|---|
R2DebugInstanceSingle |
build()
Builds a new
R2DebugInstanceSingle . |
R2DebugInstanceSingle.Builder |
from(R2DebugInstanceSingleType instance)
Fill a builder with attribute values from the provided
R2DebugInstanceSingleType instance. |
R2DebugInstanceSingle.Builder |
setColor(com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> color)
Initializes the value for the
color attribute. |
R2DebugInstanceSingle.Builder |
setInstance(R2InstanceSingleType instance)
Initializes the value for the
instance attribute. |
public final R2DebugInstanceSingle.Builder from(R2DebugInstanceSingleType instance)
R2DebugInstanceSingleType
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 R2DebugInstanceSingle.Builder setInstance(R2InstanceSingleType instance)
instance
attribute.instance
- The value for instancethis
builder for use in a chained invocationpublic final R2DebugInstanceSingle.Builder setColor(com.io7m.jtensors.core.parameterized.vectors.PVector4D<R2SpaceRGBAType> color)
color
attribute.color
- The value for colorthis
builder for use in a chained invocationpublic R2DebugInstanceSingle build()
R2DebugInstanceSingle
.IllegalStateException
- if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com