public static final class JPRATypeModel.JPRAIntegerSigned extends JPRATypeModelType.JPRAIntegerSignedType
jpra signed integer types.| Modifier and Type | Method and Description |
|---|---|
static JPRATypeModel.JPRAIntegerSigned |
copyOf(JPRATypeModelType.JPRAIntegerSignedType instance)
Creates an immutable copy of a
JPRATypeModelType.JPRAIntegerSignedType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
JPRAIntegerSigned that have equal attribute values. |
int |
hashCode()
Returns a precomputed-on-construction hash code from attributes:
sizeInBits. |
static JPRATypeModel.JPRAIntegerSigned |
of(int sizeInBits)
Construct a new immutable
JPRAIntegerSigned instance. |
int |
sizeInBits() |
String |
toString()
Prints the immutable value
JPRAIntegerSigned with attribute values. |
JPRATypeModel.JPRAIntegerSigned |
withSizeInBits(int value)
Copy the current immutable object by setting a value for the
sizeInBits attribute. |
matchScalar, matchTypepublic int sizeInBits()
sizeInBits attributepublic final JPRATypeModel.JPRAIntegerSigned withSizeInBits(int value)
sizeInBits attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for sizeInBitsthis objectpublic boolean equals(Object another)
JPRAIntegerSigned that have equal attribute values.public int hashCode()
sizeInBits.public String toString()
JPRAIntegerSigned with attribute values.public static JPRATypeModel.JPRAIntegerSigned of(int sizeInBits)
JPRAIntegerSigned instance.sizeInBits - The value for the sizeInBits attributepublic static JPRATypeModel.JPRAIntegerSigned copyOf(JPRATypeModelType.JPRAIntegerSignedType instance)
JPRATypeModelType.JPRAIntegerSignedType 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