Class Matrix3x3D.Builder
java.lang.Object
com.io7m.jtensors.core.unparameterized.matrices.Matrix3x3D.Builder
- Enclosing class:
Matrix3x3D
Builds instances of type
Matrix3x3D.
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 newMatrix3x3D.final Matrix3x3D.Builderfrom(Matrix3x3DType instance) Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.Matrix3x3DTypeinstance.final Matrix3x3D.Builderfrom(MatrixReadable3x3DType instance) Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.MatrixReadable3x3DTypeinstance.final Matrix3x3D.BuildersetR0c0(double r0c0) Initializes the value for ther0c0attribute.final Matrix3x3D.BuildersetR0c1(double r0c1) Initializes the value for ther0c1attribute.final Matrix3x3D.BuildersetR0c2(double r0c2) Initializes the value for ther0c2attribute.final Matrix3x3D.BuildersetR1c0(double r1c0) Initializes the value for ther1c0attribute.final Matrix3x3D.BuildersetR1c1(double r1c1) Initializes the value for ther1c1attribute.final Matrix3x3D.BuildersetR1c2(double r1c2) Initializes the value for ther1c2attribute.final Matrix3x3D.BuildersetR2c0(double r2c0) Initializes the value for ther2c0attribute.final Matrix3x3D.BuildersetR2c1(double r2c1) Initializes the value for ther2c1attribute.final Matrix3x3D.BuildersetR2c2(double r2c2) Initializes the value for ther2c2attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.Matrix3x3DTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.MatrixReadable3x3DTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setR0c0
Initializes the value for ther0c0attribute.- Parameters:
r0c0- The value for r0c0- Returns:
thisbuilder for use in a chained invocation
-
setR0c1
Initializes the value for ther0c1attribute.- Parameters:
r0c1- The value for r0c1- Returns:
thisbuilder for use in a chained invocation
-
setR0c2
Initializes the value for ther0c2attribute.- Parameters:
r0c2- The value for r0c2- Returns:
thisbuilder for use in a chained invocation
-
setR1c0
Initializes the value for ther1c0attribute.- Parameters:
r1c0- The value for r1c0- Returns:
thisbuilder for use in a chained invocation
-
setR1c1
Initializes the value for ther1c1attribute.- Parameters:
r1c1- The value for r1c1- Returns:
thisbuilder for use in a chained invocation
-
setR1c2
Initializes the value for ther1c2attribute.- Parameters:
r1c2- The value for r1c2- Returns:
thisbuilder for use in a chained invocation
-
setR2c0
Initializes the value for ther2c0attribute.- Parameters:
r2c0- The value for r2c0- Returns:
thisbuilder for use in a chained invocation
-
setR2c1
Initializes the value for ther2c1attribute.- Parameters:
r2c1- The value for r2c1- Returns:
thisbuilder for use in a chained invocation
-
setR2c2
Initializes the value for ther2c2attribute.- Parameters:
r2c2- The value for r2c2- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newMatrix3x3D.- Returns:
- An immutable instance of Matrix3x3D
- Throws:
IllegalStateException- if any required attributes are missing
-