public static final class POrthonormalized4D.Builder<T> extends Object
POrthonormalized4D.
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 | Description |
|---|---|---|
POrthonormalized4D<T> |
build() |
Builds a new
POrthonormalized4D. |
POrthonormalized4D.Builder<T> |
from(POrthonormalized4DType<T> instance) |
Fill a builder with attribute values from the provided
POrthonormalized4DType instance. |
POrthonormalized4D.Builder<T> |
setV0(PVector4D<T> v0) |
Initializes the value for the
v0 attribute. |
POrthonormalized4D.Builder<T> |
setV1(PVector4D<T> v1) |
Initializes the value for the
v1 attribute. |
POrthonormalized4D.Builder<T> |
setV2(PVector4D<T> v2) |
Initializes the value for the
v2 attribute. |
public final POrthonormalized4D.Builder<T> from(POrthonormalized4DType<T> instance)
POrthonormalized4DType 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 POrthonormalized4D.Builder<T> setV0(PVector4D<T> v0)
v0 attribute.v0 - The value for v0this builder for use in a chained invocationpublic final POrthonormalized4D.Builder<T> setV1(PVector4D<T> v1)
v1 attribute.v1 - The value for v1this builder for use in a chained invocationpublic final POrthonormalized4D.Builder<T> setV2(PVector4D<T> v2)
v2 attribute.v2 - The value for v2this builder for use in a chained invocationpublic POrthonormalized4D<T> build()
POrthonormalized4D.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com