Uses of Class
java.lang.Enum
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
The
java.lang.invoke
package provides low-level primitives for interacting
with the Java Virtual Machine.Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
-
Uses of Enum in java.lang
Modifier and TypeClassDescriptionclass
This is the common base class of all Java language enumeration classes.static class
Enum.EnumDesc<E extends Enum<E>>
A nominal descriptor for anenum
constant.Modifier and TypeMethodDescriptionstatic <E extends Enum<E>>
Enum.EnumDesc<E>Returns a nominal descriptor for the specifiedenum
class and namestatic <T extends Enum<T>>
TReturns the enum constant of the specified enum class with the specified name.Modifier and TypeMethodDescriptionEnumConstantNotPresentException.enumType()
Returns the type of the missing enum constant.ModifierConstructorDescriptionEnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName)
Constructs anEnumConstantNotPresentException
for the specified constant. -
Uses of Enum in java.lang.invoke
Modifier and TypeMethodDescriptionstatic <E extends Enum<E>>
EConstantBootstraps.enumConstant(MethodHandles.Lookup lookup, String name, Class<E> type)
Returns anenum
constant of the type specified bytype
with the name specified byname
. -
Uses of Enum in java.util
Modifier and TypeClassDescriptionclass
A specializedMap
implementation for use with enum type keys.class
A specializedSet
implementation for use with enum types.Modifier and TypeMethodDescriptionCreates an enum set containing all of the elements in the specified element type.EnumSet.complementOf(EnumSet<E> s)
Creates an enum set with the same element type as the specified enum set, initially containing all the elements of this type that are not contained in the specified set.EnumSet.copyOf(Collection<E> c)
Creates an enum set initialized from the specified collection.Creates an enum set with the same element type as the specified enum set, initially containing the same elements (if any).Creates an empty enum set with the specified element type.EnumSet.of(E e)
Creates an enum set initially containing the specified element.EnumSet.of(E e1, E e2)
Creates an enum set initially containing the specified elements.EnumSet.of(E first, E... rest)
Creates an enum set initially containing the specified elements.EnumSet.of(E e1, E e2, E e3)
Creates an enum set initially containing the specified elements.EnumSet.of(E e1, E e2, E e3, E e4)
Creates an enum set initially containing the specified elements.EnumSet.of(E e1, E e2, E e3, E e4, E e5)
Creates an enum set initially containing the specified elements.EnumSet.range(E from, E to)
Creates an enum set initially containing all of the elements in the range defined by the two specified endpoints.