| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| private final Set | |
| private static final ConcurrentMap | |
| private final Class | |
| private static final ClassLoader | |
| private static final Object | |
| private volatile Long | |
| private volatile Long | |
| private final Map | |
| private static volatile Throwable | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private | ConstantSet(Class<Enum<E extends Enum<E>>>
The Enum subclass to load constants from. enumClass)Creates a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(Object
element whose presence in this set is to be tested o)Overrides java. Implements java. true if this set contains the specified element.
|
| public final Constant | Returns: AConstant instance.The name of the system constant (e.g. "EINVAL"). name)Gets the constant for a name. |
| public Constant | Returns: AConstant instance.A system constant value. value)Gets the constant for a value. |
| public static ConstantSet | Returns: AConstantSet.The name of the constant set to get. name)Gets a |
| private static final Class | Returns: A Class.The name of the constants to locate. name)Gets the |
| private Long | |
| public String | Returns: The name of the constant.The integer value to look up. value)Gets the name of a platform constant value. |
| public long | |
| public Iterator | iterator()
Implements abstract java. Implements java. |
| private static ConstantSet | |
| public static void | |
| public long | |
| public long | |
| public int | size()
Implements abstract java. Implements java. |
| CAN_LOAD_RESOURCES | back to summary |
|---|---|
| private static final boolean CAN_LOAD_RESOURCES | |
| constants | back to summary |
|---|---|
| private final Set<Enum<E extends Enum<E>>> constants | |
| constantSets | back to summary |
|---|---|
| private static final ConcurrentMap<String, ConstantSet> constantSets | |
| enumClass | back to summary |
|---|---|
| private final Class<Enum<E extends Enum<E>>> enumClass | |
| LOADER | back to summary |
|---|---|
| private static final ClassLoader LOADER | |
| lock | back to summary |
|---|---|
| private static final Object lock | |
| maxValue | back to summary |
|---|---|
| private volatile Long maxValue | |
| minValue | back to summary |
|---|---|
| private volatile Long minValue | |
| nameToConstant | back to summary |
|---|---|
| private final Map<String, Constant> nameToConstant | |
| RESOURCE_READ_ERROR | back to summary |
|---|---|
| private static volatile Throwable RESOURCE_READ_ERROR | |
| valueToConstant | back to summary |
|---|---|
| private final Map<Long, Constant> valueToConstant | |
| ConstantSet | back to summary |
|---|---|
| private ConstantSet(Class<Enum<E extends Enum<E>>> enumClass) Creates a new instance of
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Overrides java. Implements java. Doc from java. Returns | |
| getConstant | back to summary |
|---|---|
| public final Constant getConstant(String name) Gets the constant for a name. | |
| getConstant | back to summary |
|---|---|
| public Constant getConstant(long value) Gets the constant for a value. | |
| getConstantSet | back to summary |
|---|---|
| public static ConstantSet getConstantSet(String name) Gets a
| |
| getEnumClass | back to summary |
|---|---|
| private static final Class Gets the
| |
| getLongField | back to summary |
|---|---|
| private Long getLongField(String name, long defaultValue) | |
| getName | back to summary |
|---|---|
| public String getName(int value) Gets the name of a platform constant value.
| |
| getValue | back to summary |
|---|---|
| public long getValue(String name) Gets the integer value of a platform constant.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee). | |
| loadConstantSet | back to summary |
|---|---|
| private static ConstantSet loadConstantSet(String name) | |
| main | back to summary |
|---|---|
| public static void main(String[] args) | |
| maxValue | back to summary |
|---|---|
| public long maxValue() Returns the maximum value in this ConstantSet
| |
| minValue | back to summary |
|---|---|
| public long minValue() Returns the minimum value in this ConstantSet
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator | |
| private Constant |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Constant | |
| public void | remove()
Overrides default java. |
| it | back to summary |
|---|---|
| private final Iterator<Enum<E extends Enum<E>>> it | |
| next | back to summary |
|---|---|
| private Constant next | |
| ConstantIterator | back to summary |
|---|---|
| pack-priv ConstantIterator(Collection<Enum<E extends Enum<E>>> constants) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Constant next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the | |