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 boolean
equals(java.lang.Object other)
java.lang.String
getActualName()
Returns the name of this element as it is found in the source code.int
hashCode()
java.lang.String
toString()
-
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 name of this element as it is found in the source code. If no such name exists, an empty string is returned.- Specified by:
getActualName
in interfaceNamedElement
- Returns:
- The name of this element as given in a Java program's source code.
-
hashCode
@Enhance("hashCode") public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-