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