public static final class JPRATypeModel.JPRAArray extends JPRATypeModelType.JPRAArrayType
jpra array types.| Modifier and Type | Method and Description |
|---|---|
static JPRATypeModel.JPRAArray |
copyOf(JPRATypeModelType.JPRAArrayType instance)
Creates an immutable copy of a
JPRATypeModelType.JPRAArrayType value. |
JPRATypeModelType.JPRATypeType |
elementType() |
boolean |
equals(Object another)
This instance is equal to all instances of
JPRAArray that have equal attribute values. |
int |
hashCode()
Returns a precomputed-on-construction hash code from attributes:
length, elementType. |
int |
length() |
static JPRATypeModel.JPRAArray |
of(int length,
JPRATypeModelType.JPRATypeType elementType)
Construct a new immutable
JPRAArray instance. |
String |
toString()
Prints the immutable value
JPRAArray with attribute values. |
JPRATypeModel.JPRAArray |
withElementType(JPRATypeModelType.JPRATypeType value)
Copy the current immutable object by setting a value for the
elementType attribute. |
JPRATypeModel.JPRAArray |
withLength(int value)
Copy the current immutable object by setting a value for the
length attribute. |
matchTypepublic int length()
length attributepublic JPRATypeModelType.JPRATypeType elementType()
elementType attributepublic final JPRATypeModel.JPRAArray withLength(int value)
length attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for lengththis objectpublic final JPRATypeModel.JPRAArray withElementType(JPRATypeModelType.JPRATypeType 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)
JPRAArray that have equal attribute values.public int hashCode()
length, elementType.public String toString()
JPRAArray with attribute values.public static JPRATypeModel.JPRAArray of(int length, JPRATypeModelType.JPRATypeType elementType)
JPRAArray instance.length - The value for the length attributeelementType - The value for the elementType attributepublic static JPRATypeModel.JPRAArray copyOf(JPRATypeModelType.JPRAArrayType instance)
JPRATypeModelType.JPRAArrayType 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 © 2017 <code@io7m.com> http://io7m.com