Class POrthonormalized4D.Builder<T>
java.lang.Object
com.io7m.jtensors.orthonormalization.POrthonormalized4D.Builder<T>
- Enclosing class:
- POrthonormalized4D<T>
public static final class POrthonormalized4D.Builder<T>
extends java.lang.Object
Builds instances of type
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.
-
Method Summary
Modifier and Type Method Description POrthonormalized4D<T>build()Builds a newPOrthonormalized4D.POrthonormalized4D.Builder<T>from(POrthonormalized4DType<T> instance)Fill a builder with attribute values from the providedPOrthonormalized4DTypeinstance.POrthonormalized4D.Builder<T>setV0(PVector4D<T> v0)Initializes the value for thev0attribute.POrthonormalized4D.Builder<T>setV1(PVector4D<T> v1)Initializes the value for thev1attribute.POrthonormalized4D.Builder<T>setV2(PVector4D<T> v2)Initializes the value for thev2attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedPOrthonormalized4DTypeinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setV0
Initializes the value for thev0attribute.- Parameters:
v0- The value for v0- Returns:
thisbuilder for use in a chained invocation
-
setV1
Initializes the value for thev1attribute.- Parameters:
v1- The value for v1- Returns:
thisbuilder for use in a chained invocation
-
setV2
Initializes the value for thev2attribute.- Parameters:
v2- The value for v2- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newPOrthonormalized4D.- Returns:
- An immutable instance of POrthonormalized4D
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-