|
||||||||||
| 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(java.lang.String name,
int code)
Add a new entry |
int |
code(int index)
Get the code given its index |
int |
count()
Get the number of items |
java.lang.String |
decode(int code)
Decode a code to its equivalent name |
int |
encode(java.lang.String name,
boolean report)
Encode a name to its equivalent code |
java.lang.String |
name(int index)
Get 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(java.lang.String name,
int code)
public int encode(java.lang.String name,
boolean report)
public java.lang.String decode(int code)
public int count()
public int code(int index)
public java.lang.String name(int index)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||