public class ConstantSet extends AbstractSet<Constant>
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object o) |
Constant |
getConstant(long value)
Gets the constant for a value.
|
Constant |
getConstant(String name)
Gets the constant for a name.
|
static ConstantSet |
getConstantSet(String name)
Gets a ConstantSet
|
String |
getName(int value)
Gets the name of a platform constant value.
|
long |
getValue(String name)
Gets the integer value of a platform constant.
|
Iterator<Constant> |
iterator() |
long |
maxValue()
Returns the maximum value in this ConstantSet
|
long |
minValue()
Returns the minimum value in this ConstantSet
|
int |
size() |
equals, hashCode, removeAll
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
public static ConstantSet getConstantSet(String name)
name
- The name of the constant set to get.public final Constant getConstant(String name)
name
- The name of the system constant (e.g. "EINVAL").Constant
instance.public Constant getConstant(long value)
value
- A system constant value.Constant
instance.public long getValue(String name)
name
- The name of the platform constant to look up (e.g. "EINVAL").public String getName(int value)
value
- The integer value to look up.public long minValue()
public long maxValue()
public int size()
size
in interface Collection<Constant>
size
in interface Set<Constant>
size
in class AbstractCollection<Constant>
public boolean contains(Object o)
contains
in interface Collection<Constant>
contains
in interface Set<Constant>
contains
in class AbstractCollection<Constant>
Copyright © 2015. All rights reserved.