|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.utilities.sa.CmndProc.Lookup
public static class CmndProc.Lookup
Inner class to implement lookup tables
| Constructor Summary | |
|---|---|
CmndProc.Lookup(int count)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(String name,
int code)
Adds a new entry |
int |
code(int index)
Gets the code given its index |
int |
count()
Gets the number of items |
String |
decode(int code)
Decodes a code to its equivalent name |
int |
encode(String name,
boolean report)
Encodes a name to its equivalent code |
String |
name(int index)
Gets the name given its index |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmndProc.Lookup(int count)
| Method Detail |
|---|
public void add(String name,
int code)
public int encode(String name,
boolean report)
public String decode(int code)
public int count()
public int code(int index)
public String name(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||