Package com.kenai.constantine
Class ConstantSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<Constant>
-
- com.kenai.constantine.ConstantSet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classConstantSet.ConstantImplDeprecated.private classConstantSet.ConstantIteratorDeprecated.
-
Field Summary
Fields Modifier and Type Field Description private ConstantSetconstantsDeprecated.private static java.util.concurrent.ConcurrentMap<java.lang.String,ConstantSet>constantSetsDeprecated.private static java.lang.ObjectlockDeprecated.private java.util.concurrent.ConcurrentMap<java.lang.String,Constant>nameToConstantDeprecated.private java.util.concurrent.ConcurrentMap<java.lang.Integer,Constant>valueToConstantDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description privateConstantSet(ConstantSet constants)Deprecated.Creates a new instance of ConstantSet
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontains(java.lang.Object o)Deprecated.ConstantgetConstant(int value)Deprecated.Gets the constant for a name.ConstantgetConstant(java.lang.String name)Deprecated.Gets the constant for a name.static ConstantSetgetConstantSet(java.lang.String name)Deprecated.Gets a ConstantSetjava.lang.StringgetName(int value)Deprecated.Gets the name of a platform constant value.intgetValue(java.lang.String name)Deprecated.Gets the integer value of a platform constant.java.util.Iterator<Constant>iterator()Deprecated.static voidmain(java.lang.String[] args)Deprecated.longmaxValue()Deprecated.longminValue()Deprecated.intsize()Deprecated.-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
nameToConstant
private final java.util.concurrent.ConcurrentMap<java.lang.String,Constant> nameToConstant
Deprecated.
-
valueToConstant
private final java.util.concurrent.ConcurrentMap<java.lang.Integer,Constant> valueToConstant
Deprecated.
-
constants
private final ConstantSet constants
Deprecated.
-
constantSets
private static final java.util.concurrent.ConcurrentMap<java.lang.String,ConstantSet> constantSets
Deprecated.
-
lock
private static final java.lang.Object lock
Deprecated.
-
-
Constructor Detail
-
ConstantSet
private ConstantSet(ConstantSet constants)
Deprecated.Creates a new instance of ConstantSet- Parameters:
constants- The JNR constants to lookup real values in
-
-
Method Detail
-
getConstantSet
public static ConstantSet getConstantSet(java.lang.String name)
Deprecated.Gets a ConstantSet- Parameters:
name- The name of the constant set to get.- Returns:
- A ConstantSet.
-
getConstant
public Constant getConstant(java.lang.String name)
Deprecated.Gets the constant for a name.- Parameters:
name- The name of the system constant (e.g. "EINVAL").- Returns:
- A
Constantinstance.
-
getConstant
public Constant getConstant(int value)
Deprecated.Gets the constant for a name.- Parameters:
value- The name of the system constant (e.g. "EINVAL").- Returns:
- A
Constantinstance.
-
getValue
public int getValue(java.lang.String name)
Deprecated.Gets the integer value of a platform constant.- Parameters:
name- The name of the platform constant to look up (e.g. "EINVAL").- Returns:
- The integer value of the constant.
-
getName
public java.lang.String getName(int value)
Deprecated.Gets the name of a platform constant value.- Parameters:
value- The integer value to look up.- Returns:
- The name of the constant.
-
minValue
public long minValue()
Deprecated.
-
maxValue
public long maxValue()
Deprecated.
-
iterator
public java.util.Iterator<Constant> iterator()
Deprecated.
-
size
public int size()
Deprecated.
-
contains
public boolean contains(java.lang.Object o)
Deprecated.
-
main
public static void main(java.lang.String[] args)
Deprecated.
-
-