Class Orthonormalized3D.Builder
java.lang.Object
com.io7m.jtensors.orthonormalization.Orthonormalized3D.Builder
- Enclosing class:
Orthonormalized3D
Builds instances of type
Orthonormalized3D
.
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 newOrthonormalized3D
.from
(Orthonormalized3DType instance) Fill a builder with attribute values from the providedOrthonormalized3DType
instance.Initializes the value for thev0
attribute.Initializes the value for thev1
attribute.Initializes the value for thev2
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedOrthonormalized3DType
instance. 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:
this
builder for use in a chained invocation
-
setV0
Initializes the value for thev0
attribute.- Parameters:
v0
- The value for v0- Returns:
this
builder for use in a chained invocation
-
setV1
Initializes the value for thev1
attribute.- Parameters:
v1
- The value for v1- Returns:
this
builder for use in a chained invocation
-
setV2
Initializes the value for thev2
attribute.- Parameters:
v2
- The value for v2- Returns:
this
builder for use in a chained invocation
-
build
Builds a newOrthonormalized3D
.- Returns:
- An immutable instance of Orthonormalized3D
- Throws:
IllegalStateException
- if any required attributes are missing
-