Class Matrix2x2F.Builder
java.lang.Object
com.io7m.jtensors.core.unparameterized.matrices.Matrix2x2F.Builder
- Enclosing class:
- Matrix2x2F
public static final class Matrix2x2F.Builder
extends java.lang.Object
Builds instances of type
Matrix2x2F.
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 Matrix2x2Fbuild()Builds a newMatrix2x2F.Matrix2x2F.Builderfrom(Matrix2x2FType instance)Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.Matrix2x2FTypeinstance.Matrix2x2F.Builderfrom(MatrixReadable2x2FType instance)Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.MatrixReadable2x2FTypeinstance.Matrix2x2F.BuildersetR0c0(float r0c0)Initializes the value for ther0c0attribute.Matrix2x2F.BuildersetR0c1(float r0c1)Initializes the value for ther0c1attribute.Matrix2x2F.BuildersetR1c0(float r1c0)Initializes the value for ther1c0attribute.Matrix2x2F.BuildersetR1c1(float r1c1)Initializes the value for ther1c1attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.MatrixReadable2x2FTypeinstance.- 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.Matrix2x2FTypeinstance.- 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
-
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
-
build
Builds a newMatrix2x2F.- Returns:
- An immutable instance of Matrix2x2F
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-