java.lang.Object#toString method always returns the
value as if the method was not overridden, i.e. the name of the enumeration constant.
| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | EnumerationDescription.AbstractBase
An adapter implementation of an enumeration description. |
| public static class | EnumerationDescription.ForLoadedEnumeration
An enumeration description representing a loaded enumeration. |
| public static class | EnumerationDescription.Latent
A latent description of an enumeration value. |
| Modifier and Type | Method and Description |
|---|---|
| public TypeDescription | |
| public String | Returns: The name of this enumeration constant.Returns the name of this instance's enumeration value. |
| public < The enumeration type. T extends Enum |
| getEnumerationType | back to summary |
|---|---|
| public TypeDescription getEnumerationType() Returns the type of this enumeration.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Returns the name of this instance's enumeration value.
| |
| load | back to summary |
|---|---|
| public <T extends Enum Prepares this enumeration value to be loaded.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public String | getActualName()
Implements net. |
| public int | |
| public String |
| AbstractBase | back to summary |
|---|---|
| public AbstractBase() | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getActualName | back to summary |
|---|---|
| public String getActualName() Implements net. Doc from net. Returns the display name of this element as it is found in the source code. If no such name exists, an empty string is returned.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Enum | value
The loaded enumeration value. |
| Access | Constructor and Description |
|---|---|
| public | ForLoadedEnumeration(Enum<?>
The value to represent. value)Creates a new enumeration value representation for a loaded enumeration. |
| Modifier and Type | Method and Description |
|---|---|
| public static List | |
| public TypeDescription | getEnumerationType()
Implements net. |
| public String | getValue()
Implements net. |
| public <T extends Enum | load(Class<T>
A type constant representing the enumeration value. type)Implements net. |
| value | back to summary |
|---|---|
| private final Enum<?> value The loaded enumeration value. | |
| ForLoadedEnumeration | back to summary |
|---|---|
| public ForLoadedEnumeration(Enum<?> value) Creates a new enumeration value representation for a loaded enumeration.
| |
| asList | back to summary |
|---|---|
| public static List Enlists a given array of loaded enumerations as enumeration values.
| |
| getEnumerationType | back to summary |
|---|---|
| public TypeDescription getEnumerationType() Implements net. Doc from net. Returns the type of this enumeration.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements net. Doc from net. Returns the name of this instance's enumeration value.
| |
| load | back to summary |
|---|---|
| public <T extends Enum Implements net. Doc from net. Prepares this enumeration value to be loaded.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final TypeDescription | enumerationType
The type of the enumeration. |
| private final String | value
The value of the enumeration. |
| Access | Constructor and Description |
|---|---|
| public | Latent(TypeDescription
The enumeration type. enumerationType, String The value of the enumeration. value)Creates a latent description of an enumeration value. |
| Modifier and Type | Method and Description |
|---|---|
| public TypeDescription | getEnumerationType()
Implements net. |
| public String | getValue()
Implements net. |
| public <T extends Enum | load(Class<T>
A type constant representing the enumeration value. type)Implements net. |
| enumerationType | back to summary |
|---|---|
| private final TypeDescription enumerationType The type of the enumeration. | |
| value | back to summary |
|---|---|
| private final String value The value of the enumeration. | |
| Latent | back to summary |
|---|---|
| public Latent(TypeDescription enumerationType, String value) Creates a latent description of an enumeration value.
| |
| getEnumerationType | back to summary |
|---|---|
| public TypeDescription getEnumerationType() Implements net. Doc from net. Returns the type of this enumeration.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements net. Doc from net. Returns the name of this instance's enumeration value.
| |
| load | back to summary |
|---|---|
| public <T extends Enum Implements net. Doc from net. Prepares this enumeration value to be loaded.
| |