Top Description Inners Fields Constructors Methods
java.lang

public abstract Class Enum<E extends Enum<E>>

extends Object
implements Constable, Comparable<E extends Enum<E>>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.lang.Comparable, java.lang.constant.Constable
Known Direct Subclasses
java.lang.ProcessBuilder.Redirect.Type, java.lang.StackStreamFactory.WalkerState, java.lang.StackWalker.Option, java.lang.StackWalker.ExtendedOption, java.lang.System.Logger.Level, java.lang.Thread.State, java.lang.ProcessImpl.LaunchMechanism, java.util.Comparators.NaturalOrderComparator, java.util.Formatter.BigDecimalLayoutForm, java.util.HexFormat.Case, java.util.Locale.IsoCountryCode, java.util.Locale.Category, java.util.Locale.FilteringMode, java.io.File.PathStatus, java.io.ObjectInputFilter.Status, java.lang.invoke.LambdaForm.BasicType, java.lang.invoke.LambdaForm.Kind, java.lang.invoke.MethodHandleImpl.ArrayAccess, java.lang.invoke.MethodHandleImpl.Intrinsic, java.lang.invoke.MethodHandles.Lookup.ClassOption, java.lang.invoke.VarHandle.AccessType, java.lang.invoke.VarHandle.AccessMode, java.lang.invoke.VarHandle.VarHandleDesc.Kind, java.lang.annotation.ElementType, java.lang.annotation.RetentionPolicy, jdk.internal.javac.PreviewFeature.Feature, java.lang.constant.DirectMethodHandleDesc.Kind, java.lang.classfile.AttributeMapper.AttributeStability, java.lang.classfile.ClassFile.ConstantPoolSharingOption, java.lang.classfile.ClassFile.DeadCodeOption, java.lang.classfile.ClassFile.DeadLabelsOption, java.lang.classfile.ClassFile.DebugElementsOption, java.lang.classfile.ClassFile.LineNumbersOption, java.lang.classfile.ClassFile.ShortJumpsOption, java.lang.classfile.ClassFile.StackMapsOption, java.lang.classfile.ClassFile.AttributesProcessingOption, java.lang.classfile.Opcode, java.lang.classfile.Opcode.Kind, java.lang.classfile.Signature.TypeArg.WildcardIndicator, java.lang.classfile.TypeAnnotation.TargetType, java.lang.classfile.TypeAnnotation.TypePathComponent.Kind, java.lang.classfile.TypeKind, java.lang.classfile.attribute.StackMapFrameInfo.SimpleVerificationTypeInfo, java.lang.classfile.components.ClassPrinter.Verbosity, java.lang.module.ModuleDescriptor.Modifier, java.lang.module.ModuleDescriptor.Requires.Modifier, java.lang.module.ModuleDescriptor.Exports.Modifier, java.lang.module.ModuleDescriptor.Opens.Modifier, java.lang.reflect.AccessFlag, java.lang.reflect.AccessFlag.Location, java.lang.reflect.ClassFileFormatVersion, java.lang.reflect.ProxyGenerator.PrimitiveTypeInfo, java.math.RoundingMode, java.net.Authenticator.RequestorType, java.net.Proxy.Type, java.net.StandardProtocolFamily, java.nio.file.AccessMode, java.nio.file.FileTreeWalker.EventType, java.nio.file.FileVisitOption, java.nio.file.FileVisitResult, java.nio.file.LinkOption, java.nio.file.StandardCopyOption, java.nio.file.StandardOpenOption, java.nio.file.attribute.AclEntryFlag, java.nio.file.attribute.AclEntryPermission, java.nio.file.attribute.AclEntryType, java.nio.file.attribute.PosixFilePermission, java.security.DrbgParameters.Capability, java.security.KeyRep.Type, java.security.Provider.OPType, java.security.CryptoPrimitive, java.security.cert.CertPathValidatorException.BasicReason, java.security.cert.CRLReason, java.security.cert.PKIXReason, java.security.cert.PKIXRevocationChecker.Option, java.text.ListFormat.Type, java.text.ListFormat.Style, java.text.Normalizer.Form, java.text.NumberFormat.Style, java.time.DayOfWeek, java.time.Month, java.time.chrono.HijrahEra, java.time.chrono.IsoEra, java.time.chrono.MinguoEra, java.time.chrono.ThaiBuddhistEra, java.time.format.DateTimeFormatterBuilder.SettingsParser, java.time.format.FormatStyle, java.time.format.ResolverStyle, java.time.format.SignStyle, java.time.format.TextStyle, java.time.temporal.ChronoField, java.time.temporal.ChronoUnit, java.time.temporal.IsoFields.Field, java.time.temporal.IsoFields.Unit, java.time.temporal.JulianFields.Field, java.time.zone.ZoneOffsetTransitionRule.TimeDefinition, java.util.concurrent.Future.State, java.util.concurrent.StructuredTaskScope.Subtask.State, java.util.concurrent.TimeUnit, java.util.regex.Pattern.Qtype, java.util.stream.Collector.Characteristics, java.util.stream.Gatherers.Value, java.util.stream.MatchOps.MatchKind, java.util.stream.StreamOpFlag, java.util.stream.StreamOpFlag.Type, java.util.stream.StreamShape, java.util.stream.StreamSpliterators.UnorderedSliceSpliterator.PermitStatus, java.util.zip.ZipCoder.Comparison, javax.net.ssl.SSLEngineResult.Status, javax.net.ssl.SSLEngineResult.HandshakeStatus, com.sun.crypto.provider.DHKEM.Params, com.sun.security.ntlm.Version, jdk.internal.foreign.CABI, jdk.internal.foreign.LayoutPath.PathElementImpl.PathKind, jdk.internal.foreign.StringSupport.CharsetKind, jdk.internal.foreign.SystemLookup.WindowsFallbackSymbols, jdk.internal.jmod.JmodFile.Section, jdk.internal.logger.BootstrapLogger.LoggingBackend, jdk.internal.logger.LoggerFinderLoader.ErrorPolicy, jdk.internal.org.objectweb.asm.util.CheckMethodAdapter.Method, jdk.internal.org.objectweb.asm.util.CheckSignatureAdapter.State, jdk.internal.reflect.ConstantPool.Tag, jdk.internal.util.Architecture, jdk.internal.util.OperatingSystem, jdk.internal.vm.Continuation.Pinned, jdk.internal.vm.Continuation.PreemptStatus, sun.invoke.util.Wrapper, sun.net.www.protocol.http.AuthCacheValue.Type, sun.net.www.protocol.http.AuthScheme, sun.net.www.protocol.http.HttpURLConnection.TunnelState, sun.nio.ch.Poller.Mode, sun.nio.ch.UnixAsynchronousSocketChannelImpl.OpType, sun.nio.fs.AbstractPoller.RequestType, sun.nio.fs.AbstractWatchKey.State, sun.nio.fs.UnixFileStore.FeatureStatus, sun.reflect.annotation.TypeAnnotation.TypeAnnotationTarget, sun.security.provider.NativePRNG.Variant, sun.security.provider.certpath.OCSP.RevocationStatus.CertStatus, sun.security.provider.certpath.OCSPResponse.ResponseStatus, sun.security.provider.certpath.ResponderId.Type, sun.security.provider.certpath.RevocationChecker.Mode, sun.security.rsa.RSAUtil.KeyType, sun.security.util.DisabledAlgorithmConstraints.Constraint.Operator, sun.security.util.DomainName.Rule.Type, sun.security.util.Event.ReporterCategory, sun.security.util.KnownOIDs, sun.security.util.RegisteredDomain.Type, sun.security.util.TlsChannelBinding.TlsChannelBindingType, sun.security.validator.CADistrustPolicy, sun.util.locale.provider.LocaleProviderAdapter.Type, sun.util.logging.PlatformLogger.Level, jdk.internal.classfile.impl.AbstractPoolEntry.Utf8EntryImpl.State, jdk.internal.classfile.impl.ClassPrinterImpl.Style, jdk.internal.classfile.impl.verifier.VerificationSignature.BasicType, jdk.internal.foreign.abi.Binding.Cast, jdk.internal.foreign.abi.CapturableState, jdk.internal.foreign.abi.StubLocations, jdk.internal.foreign.abi.aarch64.TypeClass, jdk.internal.foreign.abi.fallback.FFIABI, jdk.internal.foreign.abi.fallback.FFIStatus, jdk.internal.foreign.abi.ppc64.TypeClass, jdk.internal.foreign.abi.riscv64.linux.TypeClass, jdk.internal.foreign.abi.s390.linux.TypeClass, jdk.internal.foreign.abi.x64.sysv.ArgumentClassImpl, jdk.internal.foreign.abi.x64.sysv.TypeClass.Kind, jdk.internal.foreign.abi.x64.windows.TypeClass, jdk.internal.foreign.layout.AbstractGroupLayout.Kind, jdk.internal.icu.text.UnicodeSet.SpanCondition, jdk.internal.icu.util.CodePointMap.RangeOption, jdk.internal.icu.util.CodePointTrie.Type, jdk.internal.icu.util.CodePointTrie.ValueWidth, jdk.internal.jrtfs.JrtFileAttributeView.AttrID, sun.launcher.LauncherHelper.Option, sun.launcher.LauncherHelper.SizePrefix, sun.net.ftp.FtpClient.TransferType, sun.net.ftp.FtpDirEntry.Type, sun.net.ftp.FtpDirEntry.Permission, sun.net.ftp.FtpReplyCode, sun.net.sdp.SdpProvider.Action, sun.security.ssl.Alert, sun.security.ssl.Alert.Level, sun.security.ssl.CertificateRequest.ClientCertificateType, sun.security.ssl.CertStatusExtension.CertStatusRequestType, sun.security.ssl.CipherSuite, sun.security.ssl.CipherSuite.KeyExchange, sun.security.ssl.CipherSuite.MacAlg, sun.security.ssl.CipherSuite.HashAlg, sun.security.ssl.CipherType, sun.security.ssl.ContentType, sun.security.ssl.Finished.VerifyDataScheme, sun.security.ssl.KeyUpdate.KeyUpdateRequest, sun.security.ssl.MaxFragExtension.MaxFragLenEnum, sun.security.ssl.NamedGroup, sun.security.ssl.NamedGroup.NamedGroupSpec, sun.security.ssl.ProtocolVersion, sun.security.ssl.ClientAuthType, sun.security.ssl.ECPointFormatsExtension.ECPointFormat, sun.security.ssl.PskKeyExchangeModesExtension.PskKeyExchangeMode, sun.security.ssl.SignatureScheme, sun.security.ssl.SignatureScheme.SigAlgParamSpec, sun.security.ssl.SSLCipher, sun.security.ssl.SSLExtension, sun.security.ssl.SSLHandshake, sun.security.ssl.SSLKeyExchange.T12KeyAgreement, sun.security.ssl.SSLMasterKeyDerivation, sun.security.ssl.SSLSecretDerivation.SecretSchedule, sun.security.ssl.SSLTrafficKeyDerivation, sun.security.ssl.SSLTrafficKeyDerivation.KeySchedule, sun.security.ssl.X509Authentication, sun.security.ssl.X509KeyManagerImpl.CheckType, sun.security.ssl.X509KeyManagerImpl.CheckResult, sun.security.tools.keytool.Main.Command, sun.security.tools.keytool.Main.Option, java.lang.Character.UnicodeScript
Annotations
@SuppressWarnings:serial
Type Parameters
<E>
The type of the enum subclass
Imports
java.io.IOException, .InvalidObjectException, .ObjectInputStream, .ObjectStreamException, .Serializable, java.lang.constant.ClassDesc, .Constable, .ConstantDescs, .DynamicConstantDesc, java.lang.invoke.MethodHandles, java.util.Optional, jdk.internal.vm.annotation.Stable

This is the common base class of all Java language enumeration classes. More information about enums, including descriptions of the implicitly declared methods synthesized by the compiler, can be found in section 8.9 of The Java Language Specification. Enumeration classes are all serializable and receive special handling by the serialization mechanism. The serialized representation used for enum constants cannot be customized. Declarations of methods and fields that would otherwise interact with serialization are ignored, including serialVersionUID; see the Java Object Serialization Specification for details.

Note that when using an enumeration type as the type of a set or as the type of the keys in a map, specialized and efficient set and map implementations are available.

Authors
Josh Bloch, Neal Gafter
Since
1.5
Java Language Specification
8.9 Enum Classes, 8.9.3 Enum Members
External Specification
Java Object Serialization Specification
See Also
Class#getEnumConstants(), java.util.EnumSet, java.util.EnumMap

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
Enum.EnumDesc<
the type of the enum constant
E extends Enum<E>
>

A nominal descriptor for an enum constant.

Field Summary

Modifier and TypeField and Description
private int
hash

The hash code of this enumeration constant.

private final String
name

The name of this enum constant, as declared in the enum declaration.

private final int
ordinal

The ordinal of this enumeration constant (its position in the enum declaration, where the initial constant is assigned an ordinal of zero).

Constructor Summary

AccessConstructor and Description
protected
Enum(String
The name of this enum constant, which is the identifier used to declare it.
name
,
int
The ordinal of this enumeration constant (its position in the enum declaration, where the initial constant is assigned an ordinal of zero).
ordinal
)

Sole constructor.

Method Summary

Modifier and TypeMethod and Description
protected final Object

Returns:

(never returns)
clone
()

Overrides java.lang.Object.clone.

Throws CloneNotSupportedException.

public final int
compareTo(E
the object to be compared.
o
)

Implements java.lang.Comparable.compareTo.

Compares this enum with the specified object for order.

public final Optional<Enum.EnumDesc<E>>

Returns:

An Optional containing the resulting nominal descriptor, or an empty Optional if one cannot be constructed.
describeConstable
()

Implements java.lang.constant.Constable.describeConstable.

Returns an enum descriptor EnumDesc for this instance, if one can be constructed, or an empty Optional if one cannot be.

public final boolean

Returns:

true if the specified object is equal to this enum constant.
equals
(Object
the object to be compared for equality with this object.
other
)

Overrides java.lang.Object.equals.

Returns true if the specified object is equal to this enum constant.

protected final void
finalize()

Overrides java.lang.Object.finalize.

Deprecated for removal since 18. Finalization has been deprecated for removal. See java.lang.Object#finalize for background information and details about migration options.

enum classes cannot have finalize methods.

public final Class<E>

Returns:

the Class object corresponding to this enum constant's enum type
getDeclaringClass
()

Returns the Class object corresponding to this enum constant's enum type.

public final int

Returns:

a hash code for this enum constant.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hash code for this enum constant.

public final String

Returns:

the name of this enum constant
name
()

Returns the name of this enum constant, exactly as declared in its enum declaration.

public final int

Returns:

the ordinal of this enumeration constant
ordinal
()

Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).

private void
readObject(ObjectInputStream in)

prevent default deserialization

private void
public String

Returns:

the name of this enum constant
toString
()

Overrides java.lang.Object.toString.

Returns the name of this enum constant, as contained in the declaration.

public static <
The enum class whose constant is to be returned
T extends Enum<T>
>
T

Returns:

the enum constant of the specified enum class with the specified name
valueOf
(Class<T>
the Class object of the enum class from which to return a constant
enumClass
,
String
the name of the constant to return
name
)

Returns the enum constant of the specified enum class with the specified name.

Inherited from java.lang.Object:
getClassnotifynotifyAllwaitwaitwait

Field Detail

hashback to summary
private int hash

The hash code of this enumeration constant.

Annotations
@Stable
nameback to summary
private final String name

The name of this enum constant, as declared in the enum declaration. Most programmers should use the toString method rather than accessing this field.

ordinalback to summary
private final int ordinal

The ordinal of this enumeration constant (its position in the enum declaration, where the initial constant is assigned an ordinal of zero). Most programmers will have no use for this field. It is designed for use by sophisticated enum-based data structures, such as java.util.EnumSet and java.util.EnumMap.

Constructor Detail

Enumback to summary
protected Enum(String name, int ordinal)

Sole constructor. Programmers cannot invoke this constructor. It is for use by code emitted by the compiler in response to enum class declarations.

Parameters
name:String

The name of this enum constant, which is the identifier used to declare it.

ordinal:int

The ordinal of this enumeration constant (its position in the enum declaration, where the initial constant is assigned an ordinal of zero).

Method Detail

cloneback to summary
protected final Object clone() throws CloneNotSupportedException

Overrides java.lang.Object.clone.

Throws CloneNotSupportedException. This guarantees that enums are never cloned, which is necessary to preserve their "singleton" status.

Returns:Object

(never returns)

Exceptions
CloneNotSupportedException:

Doc from java.lang.Object.clone.

if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.

compareToback to summary
public final int compareTo(E o)

Implements java.lang.Comparable.compareTo.

Compares this enum with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. Enum constants are only comparable to other enum constants of the same enum type. The natural order implemented by this method is the order in which the constants are declared.

Parameters
o:E

Doc from java.lang.Comparable.compareTo.

the object to be compared.

Returns:int

Doc from java.lang.Comparable.compareTo.

a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

describeConstableback to summary
public final Optional<Enum.EnumDesc<E>> describeConstable()

Implements java.lang.constant.Constable.describeConstable.

Returns an enum descriptor EnumDesc for this instance, if one can be constructed, or an empty Optional if one cannot be.

Returns:Optional<Enum.EnumDesc<E>>

An Optional containing the resulting nominal descriptor, or an empty Optional if one cannot be constructed.

Annotations
@Override
Since
12
equalsback to summary
public final boolean equals(Object other)

Overrides java.lang.Object.equals.

Returns true if the specified object is equal to this enum constant.

Parameters
other:Object

the object to be compared for equality with this object.

Returns:boolean

true if the specified object is equal to this enum constant.

finalizeback to summary
protected final void finalize()

Overrides java.lang.Object.finalize.

Deprecated

for removal since 18.

Finalization has been deprecated for removal. See java.lang.Object#finalize for background information and details about migration options.

enum classes cannot have finalize methods.

Annotations
@Deprecated
since:18
forRemoval:true
@SuppressWarnings:removal
getDeclaringClassback to summary
public final Class<E> getDeclaringClass()

Returns the Class object corresponding to this enum constant's enum type. Two enum constants e1 and e2 are of the same enum type if and only if e1.getDeclaringClass() == e2.getDeclaringClass(). (The value returned by this method may differ from the one returned by the Object#getClass method for enum constants with constant-specific class bodies.)

Returns:Class<E>

the Class object corresponding to this enum constant's enum type

Annotations
@SuppressWarnings:unchecked
hashCodeback to summary
public final int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code for this enum constant.

Returns:int

a hash code for this enum constant.

nameback to summary
public final String name()

Returns the name of this enum constant, exactly as declared in its enum declaration. Most programmers should use the toString method in preference to this one, as the toString method may return a more user-friendly name. This method is designed primarily for use in specialized situations where correctness depends on getting the exact name, which will not vary from release to release.

Returns:String

the name of this enum constant

ordinalback to summary
public final int ordinal()

Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero). Most programmers will have no use for this method. It is designed for use by sophisticated enum-based data structures, such as java.util.EnumSet and java.util.EnumMap.

Returns:int

the ordinal of this enumeration constant

readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException

prevent default deserialization

Annotations
@Serial
readObjectNoDataback to summary
private void readObjectNoData() throws ObjectStreamException
Annotations
@Serial
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Returns:String

the name of this enum constant

valueOfback to summary
public static <T extends Enum<T>> T valueOf(Class<T> enumClass, String name)

Returns the enum constant of the specified enum class with the specified name. The name must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)

Note that for a particular enum class T, the implicitly declared public static T valueOf(String) method on that enum may be used instead of this method to map from a name to the corresponding enum constant. All the constants of an enum class can be obtained by calling the implicit public static T[] values() method of that class.

Parameters
<T>
The enum class whose constant is to be returned
enumClass:Class<T>

the Class object of the enum class from which to return a constant

name:String

the name of the constant to return

Returns:T

the enum constant of the specified enum class with the specified name

Exceptions
IllegalArgumentException:
if the specified enum class has no constant with the specified name, or the specified class object does not represent an enum class
NullPointerException:
if enumClass or name is null
Since
1.5
java.lang back to summary

public final Class Enum.EnumDesc<E extends Enum<E>>

extends DynamicConstantDesc<E extends Enum<E>>
Class Inheritance
Type Parameters
<E>
the type of the enum constant

A nominal descriptor for an enum constant.
Since
12

Constructor Summary

AccessConstructor and Description
private
EnumDesc(ClassDesc
a ClassDesc describing the enum class
constantClass
,
String
the unqualified name of the enum constant
constantName
)

Constructs a nominal descriptor for the specified enum class and name.

Method Summary

Modifier and TypeMethod and Description
public static <
the type of the enum constant
E extends Enum<E>
>
Enum.EnumDesc<E>

Returns:

the nominal descriptor
of
(ClassDesc
a ClassDesc describing the enum class
enumClass
,
String
the unqualified name of the enum constant
constantName
)

Returns a nominal descriptor for the specified enum class and name

public E
resolveConstantDesc(MethodHandles.Lookup
The MethodHandles.Lookup to provide name resolution and access control context
lookup
)

Overrides java.lang.constant.DynamicConstantDesc.resolveConstantDesc.

Implements java.lang.constant.ConstantDesc.resolveConstantDesc.

Resolves this descriptor reflectively, emulating the resolution behavior of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4.

public String
toString()

Overrides java.lang.constant.DynamicConstantDesc.toString.

Returns a compact textual description of this constant description, including the bootstrap method, the constant name and type, and the static bootstrap arguments.

Inherited from java.lang.constant.DynamicConstantDesc:
bootstrapArgsbootstrapArgsListbootstrapMethodconstantNameconstantTypeequalshashCodeofofofCanonicalofNamed

Constructor Detail

EnumDescback to summary
private EnumDesc(ClassDesc constantClass, String constantName)

Constructs a nominal descriptor for the specified enum class and name.

Parameters
constantClass:ClassDesc

a ClassDesc describing the enum class

constantName:String

the unqualified name of the enum constant

Exceptions
NullPointerException:
if any argument is null
Java Virtual Machine Specification
4.2.2 Unqualified Names

Method Detail

ofback to summary
public static <E extends Enum<E>> Enum.EnumDesc<E> of(ClassDesc enumClass, String constantName)

Returns a nominal descriptor for the specified enum class and name

Parameters
<E>
the type of the enum constant
enumClass:ClassDesc

a ClassDesc describing the enum class

constantName:String

the unqualified name of the enum constant

Returns:Enum.EnumDesc<E>

the nominal descriptor

Exceptions
NullPointerException:
if any argument is null
Since
12
Java Virtual Machine Specification
4.2.2 Unqualified Names
resolveConstantDescback to summary
public E resolveConstantDesc(MethodHandles.Lookup lookup) throws ReflectiveOperationException

Overrides java.lang.constant.DynamicConstantDesc.resolveConstantDesc.

Implements java.lang.constant.ConstantDesc.resolveConstantDesc.

Doc from java.lang.constant.ConstantDesc.resolveConstantDesc.

Resolves this descriptor reflectively, emulating the resolution behavior of JVMS 5.4.3 and the access control behavior of JVMS 5.4.4. The resolution and access control context is provided by the MethodHandles.Lookup parameter. No caching of the resulting value is performed.

Parameters
lookup:MethodHandles.Lookup

The MethodHandles.Lookup to provide name resolution and access control context

Returns:E

the resolved constant value

Annotations
@Override
@SuppressWarnings:unchecked
Exceptions
ReflectiveOperationException:
if a class, method, or field could not be reflectively resolved in the course of resolution
toStringback to summary
public String toString()

Overrides java.lang.constant.DynamicConstantDesc.toString.

Doc from java.lang.constant.DynamicConstantDesc.toString.

Returns a compact textual description of this constant description, including the bootstrap method, the constant name and type, and the static bootstrap arguments.

Returns:String

A compact textual description of this call site descriptor

Annotations
@Override