Package com.kenai.constantine
Class ConstantSet
Deprecated.
Provides forward and reverse lookup for platform constants
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final class
Deprecated.private final class
Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConstantSet
Deprecated.private static final ConcurrentMap<String,
ConstantSet> Deprecated.private static final Object
Deprecated.private final ConcurrentMap<String,
Constant> Deprecated.private final ConcurrentMap<Integer,
Constant> Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ConstantSet
(ConstantSet constants) Deprecated.Creates a new instance of ConstantSet -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.getConstant
(int value) Deprecated.Gets the constant for a name.getConstant
(String name) Deprecated.Gets the constant for a name.static ConstantSet
getConstantSet
(String name) Deprecated.Gets a ConstantSetgetName
(int value) Deprecated.Gets the name of a platform constant value.int
Deprecated.Gets the integer value of a platform constant.iterator()
Deprecated.static void
Deprecated.long
maxValue()
Deprecated.long
minValue()
Deprecated.int
size()
Deprecated.Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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
Constant
instance.
-
getConstant
Deprecated.Gets the constant for a name.- Parameters:
value
- The name of the system constant (e.g. "EINVAL").- Returns:
- A
Constant
instance.
-
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:
size
in interfaceCollection<Constant>
- Specified by:
size
in interfaceSet<Constant>
- Specified by:
size
in classAbstractCollection<Constant>
-
contains
Deprecated.- Specified by:
contains
in interfaceCollection<Constant>
- Specified by:
contains
in interfaceSet<Constant>
- Overrides:
contains
in classAbstractCollection<Constant>
-
main
Deprecated.
-