Class EnumerationDescription.AbstractBase
- java.lang.Object
-
- net.bytebuddy.description.enumeration.EnumerationDescription.AbstractBase
-
- All Implemented Interfaces:
EnumerationDescription,NamedElement
- Direct Known Subclasses:
EnumerationDescription.ForLoadedEnumeration,EnumerationDescription.Latent
- Enclosing interface:
- EnumerationDescription
public abstract static class EnumerationDescription.AbstractBase extends java.lang.Object implements EnumerationDescription
An adapter implementation of an enumeration description.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.enumeration.EnumerationDescription
EnumerationDescription.AbstractBase, EnumerationDescription.ForLoadedEnumeration, EnumerationDescription.Latent
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
-
Field Summary
-
Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.lang.StringgetActualName()Returns the display name of this element as it is found in the source code.inthashCode()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.enumeration.EnumerationDescription
getEnumerationType, getValue, load
-
-
-
-
Method Detail
-
getActualName
public java.lang.String getActualName()
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.- Specified by:
getActualNamein interfaceNamedElement- Returns:
- The name of this element as given in a Java program's source code.
-
hashCode
@Enhance("hashCode") public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@MaybeNull java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-