Modifier and Type | Class and Description |
---|---|
private class |
ConstantSet.ConstantImpl
Deprecated.
|
private class |
ConstantSet.ConstantIterator
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
private ConstantSet |
constants
Deprecated.
|
private static java.util.concurrent.ConcurrentMap<java.lang.String,ConstantSet> |
constantSets
Deprecated.
|
private static java.lang.Object |
lock
Deprecated.
|
private java.util.concurrent.ConcurrentMap<java.lang.String,Constant> |
nameToConstant
Deprecated.
|
private java.util.concurrent.ConcurrentMap<java.lang.Integer,Constant> |
valueToConstant
Deprecated.
|
Modifier | Constructor and Description |
---|---|
private |
ConstantSet(ConstantSet constants)
Deprecated.
Creates a new instance of ConstantSet
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object o)
Deprecated.
|
Constant |
getConstant(int value)
Deprecated.
Gets the constant for a name.
|
Constant |
getConstant(java.lang.String name)
Deprecated.
Gets the constant for a name.
|
static ConstantSet |
getConstantSet(java.lang.String name)
Deprecated.
Gets a ConstantSet
|
java.lang.String |
getName(int value)
Deprecated.
Gets the name of a platform constant value.
|
int |
getValue(java.lang.String name)
Deprecated.
Gets the integer value of a platform constant.
|
java.util.Iterator<Constant> |
iterator()
Deprecated.
|
static void |
main(java.lang.String[] args)
Deprecated.
|
long |
maxValue()
Deprecated.
|
long |
minValue()
Deprecated.
|
int |
size()
Deprecated.
|
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final java.util.concurrent.ConcurrentMap<java.lang.String,Constant> nameToConstant
private final java.util.concurrent.ConcurrentMap<java.lang.Integer,Constant> valueToConstant
private final ConstantSet constants
private static final java.util.concurrent.ConcurrentMap<java.lang.String,ConstantSet> constantSets
private static final java.lang.Object lock
private ConstantSet(ConstantSet constants)
constants
- The JNR constants to lookup real values inpublic static ConstantSet getConstantSet(java.lang.String name)
name
- The name of the constant set to get.public Constant getConstant(java.lang.String name)
name
- The name of the system constant (e.g. "EINVAL").Constant
instance.public Constant getConstant(int value)
value
- The name of the system constant (e.g. "EINVAL").Constant
instance.public int getValue(java.lang.String name)
name
- The name of the platform constant to look up (e.g. "EINVAL").public java.lang.String getName(int value)
value
- The integer value to look up.public long minValue()
public long maxValue()
public java.util.Iterator<Constant> iterator()
public int size()
public boolean contains(java.lang.Object o)
public static void main(java.lang.String[] args)