Package com.kenai.constantine
Class ConstantSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<Constant>
-
- com.kenai.constantine.ConstantSet
-
@Deprecated public class ConstantSet extends AbstractSet<Constant>
Deprecated.Provides forward and reverse lookup for platform constants
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
contains(Object o)
Deprecated.Constant
getConstant(int value)
Deprecated.Gets the constant for a name.Constant
getConstant(String name)
Deprecated.Gets the constant for a name.static ConstantSet
getConstantSet(String name)
Deprecated.Gets a ConstantSetString
getName(int value)
Deprecated.Gets the name of a platform constant value.int
getValue(String name)
Deprecated.Gets the integer value of a platform constant.Iterator<Constant>
iterator()
Deprecated.static void
main(String[] args)
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
-
-
-
-
Method Detail
-
getConstantSet
public static ConstantSet getConstantSet(String name)
Deprecated.Gets a ConstantSet- Parameters:
name
- The name of the constant set to get.- Returns:
- A ConstantSet.
-
getConstant
public Constant getConstant(String name)
Deprecated.Gets the constant for a name.- Parameters:
name
- The name of the system constant (e.g. "EINVAL").- Returns:
- A
Constant
instance.
-
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
Constant
instance.
-
getValue
public int getValue(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 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.
-
size
public int size()
Deprecated.- Specified by:
size
in interfaceCollection<Constant>
- Specified by:
size
in interfaceSet<Constant>
- Specified by:
size
in classAbstractCollection<Constant>
-
contains
public boolean contains(Object o)
Deprecated.- Specified by:
contains
in interfaceCollection<Constant>
- Specified by:
contains
in interfaceSet<Constant>
- Overrides:
contains
in classAbstractCollection<Constant>
-
main
public static void main(String[] args)
Deprecated.
-
-