|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<Constant>
com.kenai.constantine.ConstantSet
public class ConstantSet
Provides forward and reverse lookup for platform constants
| Method Summary | |
|---|---|
boolean |
contains(java.lang.Object o)
|
Constant |
getConstant(int value)
Gets the constant for a name. |
Constant |
getConstant(java.lang.String name)
Gets the constant for a name. |
static ConstantSet |
getConstantSet(java.lang.String name)
Gets a ConstantSet |
java.lang.String |
getName(int value)
Gets the name of a platform constant value. |
int |
getValue(java.lang.String name)
Gets the integer value of a platform constant. |
java.util.Iterator<Constant> |
iterator()
|
static void |
main(java.lang.String[] args)
|
long |
maxValue()
|
long |
minValue()
|
int |
size()
|
| 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.Set |
|---|
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray |
| Method Detail |
|---|
public static ConstantSet getConstantSet(java.lang.String name)
name - The name of the constant set to get.
public Constant getConstant(java.lang.String name)
name - The name of the system constant (e.g. "EINVAL").
Constant instance.public Constant getConstant(int value)
name - The name of the system constant (e.g. "EINVAL").
Constant instance.public int getValue(java.lang.String name)
name - The name of the platform constant to look up (e.g. "EINVAL").
public java.lang.String getName(int value)
value - The integer value to look up.
public long minValue()
public long maxValue()
public java.util.Iterator<Constant> iterator()
iterator in interface java.lang.Iterable<Constant>iterator in interface java.util.Collection<Constant>iterator in interface java.util.Set<Constant>iterator in class java.util.AbstractCollection<Constant>public int size()
size in interface java.util.Collection<Constant>size in interface java.util.Set<Constant>size in class java.util.AbstractCollection<Constant>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<Constant>contains in interface java.util.Set<Constant>contains in class java.util.AbstractCollection<Constant>public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||