public static final class JPRATypeModel.JPRAMatrix extends JPRATypeModelType.JPRAMatrixType
JPRATypeModelType.JPRAMatrixType.
Use the static factory method to create immutable instances:
JPRATypeModel.JPRAMatrix.of().
| Modifier and Type | Method and Description |
|---|---|
static JPRATypeModel.JPRAMatrix |
copyOf(JPRATypeModelType.JPRAMatrixType instance)
Creates an immutable copy of a
JPRATypeModelType.JPRAMatrixType value. |
JPRATypeModelType.JPRAScalarType |
elementType() |
boolean |
equals(Object another)
This instance is equal to all instances of
JPRAMatrix that have equal attribute values. |
int |
hashCode()
Returns a precomputed-on-construction hash code from attributes:
width, height, elementType. |
int |
height() |
static JPRATypeModel.JPRAMatrix |
of(int width,
int height,
JPRATypeModelType.JPRAScalarType elementType)
Construct a new immutable
JPRAMatrix instance. |
String |
toString()
Prints the immutable value
JPRAMatrix... with all non-generated
and non-auxiliary attribute values. |
int |
width() |
JPRATypeModel.JPRAMatrix |
withElementType(JPRATypeModelType.JPRAScalarType value)
Copy the current immutable object by setting a value for the
elementType attribute. |
JPRATypeModel.JPRAMatrix |
withHeight(int value)
Copy the current immutable object by setting a value for the
height attribute. |
JPRATypeModel.JPRAMatrix |
withWidth(int value)
Copy the current immutable object by setting a value for the
width attribute. |
matchTypepublic int width()
width attributepublic int height()
height attributepublic JPRATypeModelType.JPRAScalarType elementType()
elementType attributepublic final JPRATypeModel.JPRAMatrix withWidth(int value)
width attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for widththis objectpublic final JPRATypeModel.JPRAMatrix withHeight(int value)
height attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for heightthis objectpublic final JPRATypeModel.JPRAMatrix withElementType(JPRATypeModelType.JPRAScalarType value)
elementType attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for elementTypethis objectpublic boolean equals(Object another)
JPRAMatrix that have equal attribute values.public int hashCode()
width, height, elementType.public String toString()
JPRAMatrix... with all non-generated
and non-auxiliary attribute values.public static JPRATypeModel.JPRAMatrix of(int width, int height, JPRATypeModelType.JPRAScalarType elementType)
JPRAMatrix instance.width - The value for the width attributeheight - The value for the height attributeelementType - The value for the elementType attributepublic static JPRATypeModel.JPRAMatrix copyOf(JPRATypeModelType.JPRAMatrixType instance)
JPRATypeModelType.JPRAMatrixType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copyCopyright © 2015 <code@io7m.com> http://io7m.com