Method Summary |
|
public boolean | addSymbol(Symbol symbol) |
public boolean | addSymbol(SymbolCollection collection) |
public void | clear() Removes all symbols from this collection. |
public boolean | contains(Symbol symbol) If the collection contains the symbol.
Parameters: symbol - Symbol. |
public boolean | contains(String name) If the collection contains a symbol, given by the name of the symbol.
Parameters: name - Name of the symbol. |
public boolean | equals(Object o) Compares to another collection of symbols.
Parameters: o - Another object. |
public Symbol | getSymbol(int index) Return a symbol giving by an index.
Parameters: index - Index of the symbol. |
public Symbol | getSymbol(String name) Returns a symbol from this collection given by the name of the symbol.
Parameters: name - Name of the symbol. |
public int | getSymbolCount() Returns the count of symbols in the collection. |
public int | indexOf(Symbol symbol) Return the index of a symbol.
Parameters: symbol - Symbol. |
public int | indexOf(String name) Return the index of a symbol, given by the name of the Symbol.
Parameters: name - Name of symbol. |
public boolean | isEmpty() If this collection is empty. |
public void | removeSymbol(int index) |
public void | removeSymbol(Symbol symbol) Removes a symbol from this collection. |
public void | setSymbol(int index, Symbol symbol) Replace a symbol by an index. |
public String | toString() Return a string representation of the collection. |