public static final class JPRATypeModel.JPRAUserDefined extends JPRATypeModelType.JPRAUserDefinedType
JPRATypeModelType.JPRAUserDefinedType.
Use the static factory method to create immutable instances:
JPRATypeModel.JPRAUserDefined.of().
| Modifier and Type | Method and Description |
|---|---|
static JPRATypeModel.JPRAUserDefined |
copyOf(JPRATypeModelType.JPRAUserDefinedType instance)
Creates an immutable copy of a
JPRATypeModelType.JPRAUserDefinedType value. |
boolean |
equals(Object another)
This instance is equal to all instances of
JPRAUserDefined that have equal attribute values. |
int |
hashCode()
Returns a precomputed-on-construction hash code from attributes:
type. |
static JPRATypeModel.JPRAUserDefined |
of(Class<? extends JPRAValueType> type)
Construct a new immutable
JPRAUserDefined instance. |
String |
toString()
Prints the immutable value
JPRAUserDefined... with all non-generated
and non-auxiliary attribute values. |
Class<? extends JPRAValueType> |
type() |
JPRATypeModel.JPRAUserDefined |
withType(Class<? extends JPRAValueType> value)
Copy the current immutable object by setting a value for the
type attribute. |
matchTypepublic Class<? extends JPRAValueType> type()
type attributepublic final JPRATypeModel.JPRAUserDefined withType(Class<? extends JPRAValueType> value)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectpublic boolean equals(Object another)
JPRAUserDefined that have equal attribute values.public int hashCode()
type.public String toString()
JPRAUserDefined... with all non-generated
and non-auxiliary attribute values.public static JPRATypeModel.JPRAUserDefined of(Class<? extends JPRAValueType> type)
JPRAUserDefined instance.type - The value for the type attributepublic static JPRATypeModel.JPRAUserDefined copyOf(JPRATypeModelType.JPRAUserDefinedType instance)
JPRATypeModelType.JPRAUserDefinedType 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