Method Summary |
|
public boolean | add(symbol sym) Add a single symbol to the set. |
public boolean | add(symbol_set other) Add (union) in a complete set. |
public Enumeration | all() Access to all elements of the set. |
public boolean | contains(symbol sym) Determine if the set contains a particular symbol. |
public boolean | equals(symbol_set other) Equality comparison. |
public boolean | equals(Object other) Generic equality comparison. |
public int | hashCode() Compute a hash code. |
public boolean | is_subset_of(symbol_set other) Determine if this set is an (improper) subset of another. |
public boolean | is_superset_of(symbol_set other) Determine if this set is an (improper) superset of another. |
protected void | not_null(Object obj) Helper function to test for a null object and throw an exception
if one is found. |
public void | remove(symbol sym) Remove a single symbol if it is in the set. |
public void | remove(symbol_set other) Remove (set subtract) a complete set. |
public int | size() |
public String | toString() Convert to a string. |