|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.util.ConstantMap
public class ConstantMap
Mapping between constant names and integer constant values and vice-versa (values can be queried by name, and names queried by value).
Constructor Summary | |
---|---|
ConstantMap()
|
Method Summary | |
---|---|
void |
add(int constantValue,
java.lang.String constantName)
Adds a constant to the map |
java.lang.String |
get(int constantValue)
Returns a constant name for a given constant value, if available. |
int |
get(java.lang.String constantName,
int defaultValue)
Returns a constant value for a given constant name, if available. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstantMap()
Method Detail |
---|
public void add(int constantValue, java.lang.String constantName)
constantValue
- the value of the constantconstantName
- the name of the constantpublic java.lang.String get(int constantValue)
constantValue
- the constant value
public int get(java.lang.String constantName, int defaultValue)
constantName
- the constant namedefaultValue
- the default value to return if a value is not found
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |