public interface Dictionary extends Iterable<DictionaryCommand>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCommand(TokenizedCommand tc)
Test if a given command is present in a dictionary.
|
int |
findCommand(TokenizedCommand tc)
Find a given command in the dictionary
|
DictionaryCommand |
get(int index)
Get the command at the given index.
|
int |
size()
The size of the dictionary.
|
boolean containsCommand(TokenizedCommand tc)
tc - The command to search fortrueIf the command is foundint findCommand(TokenizedCommand tc)
tc - The command to search for-1 if
the command is not found.int size()
DictionaryCommand get(int index) throws IndexOutOfBoundsException
index - IndexOutOfBoundsException - If the index is out of bounds.Copyright © 2013 LSST. All Rights Reserved.