Class POrthonormalized3D.Builder<T>
java.lang.Object
com.io7m.jtensors.orthonormalization.POrthonormalized3D.Builder<T>
- Enclosing class:
POrthonormalized3D<T>
Builds instances of type
POrthonormalized3D.
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 TypeMethodDescriptionbuild()Builds a newPOrthonormalized3D.final POrthonormalized3D.Builder<T> from(POrthonormalized3DType<T> instance) Fill a builder with attribute values from the providedPOrthonormalized3DTypeinstance.final POrthonormalized3D.Builder<T> Initializes the value for thev0attribute.final POrthonormalized3D.Builder<T> Initializes the value for thev1attribute.final POrthonormalized3D.Builder<T> Initializes the value for thev2attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedPOrthonormalized3DTypeinstance. 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 newPOrthonormalized3D.- Returns:
- An immutable instance of POrthonormalized3D
- Throws:
IllegalStateException- if any required attributes are missing
-