Package com.kenai.constantine
Class ConstantSet
Deprecated.
Provides forward and reverse lookup for platform constants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classDeprecated.private final classDeprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConstantSetDeprecated.private static final ConcurrentMap<String,ConstantSet> Deprecated.private static final ObjectDeprecated.private final ConcurrentMap<String,Constant> Deprecated.private final ConcurrentMap<Integer,Constant> Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstantSet(ConstantSet constants) Deprecated.Creates a new instance of ConstantSet -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.getConstant(int value) Deprecated.Gets the constant for a name.getConstant(String name) Deprecated.Gets the constant for a name.static ConstantSetgetConstantSet(String name) Deprecated.Gets a ConstantSetgetName(int value) Deprecated.Gets the name of a platform constant value.intDeprecated.Gets the integer value of a platform constant.iterator()Deprecated.static voidDeprecated.longmaxValue()Deprecated.longminValue()Deprecated.intsize()Deprecated.Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
nameToConstant
Deprecated. -
valueToConstant
Deprecated. -
constants
Deprecated. -
constantSets
Deprecated. -
lock
Deprecated.
-
-
Constructor Details
-
ConstantSet
Deprecated.Creates a new instance of ConstantSet- Parameters:
constants- The JNR constants to lookup real values in
-
-
Method Details
-
getConstantSet
Deprecated.Gets a ConstantSet- Parameters:
name- The name of the constant set to get.- Returns:
- A ConstantSet.
-
getConstant
Deprecated.Gets the constant for a name.- Parameters:
name- The name of the system constant (e.g. "EINVAL").- Returns:
- A
Constantinstance.
-
getConstant
Deprecated.Gets the constant for a name.- Parameters:
value- The name of the system constant (e.g. "EINVAL").- Returns:
- A
Constantinstance.
-
getValue
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
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
Deprecated. -
size
public int size()Deprecated.- Specified by:
sizein interfaceCollection<Constant>- Specified by:
sizein interfaceSet<Constant>- Specified by:
sizein classAbstractCollection<Constant>
-
contains
Deprecated.- Specified by:
containsin interfaceCollection<Constant>- Specified by:
containsin interfaceSet<Constant>- Overrides:
containsin classAbstractCollection<Constant>
-
main
Deprecated.
-