| Modifier and Type | Field and Description | 
|---|---|
| protected Hashtable<String,symbol> | _allA hash table to hold the set. | 
| Constructor and Description | 
|---|
| symbol_set()Constructor for an empty set. | 
| symbol_set(symbol_set other)Constructor for cloning from another set. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | add(symbol_set other)Add (union) in a complete set. | 
| boolean | add(symbol sym)Add a single symbol to the set. | 
| Enumeration<symbol> | all()Access to all elements of the set. | 
| boolean | contains(symbol sym)Determine if the set contains a particular symbol. | 
| boolean | equals(Object other)Generic equality comparison. | 
| boolean | equals(symbol_set other)Equality comparison. | 
| int | hashCode()Compute a hash code. | 
| boolean | is_subset_of(symbol_set other)Determine if this set is an (improper) subset of another. | 
| 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. | 
| void | remove(symbol_set other)Remove (set subtract) a complete set. | 
| void | remove(symbol sym)Remove a single symbol if it is in the set. | 
| int | size()size of the set | 
| String | toString()Convert to a string. | 
public symbol_set()
public symbol_set(symbol_set other) throws internal_error
other - the set we are cloning from.internal_errorpublic Enumeration<symbol> all()
public int size()
protected void not_null(Object obj) throws internal_error
obj - the object we are testing.internal_errorpublic boolean contains(symbol sym)
sym - the symbol we are looking for.public boolean is_subset_of(symbol_set other) throws internal_error
other - the set we are testing against.internal_errorpublic boolean is_superset_of(symbol_set other) throws internal_error
other - the set we are are testing against.internal_errorpublic boolean add(symbol sym) throws internal_error
sym - the symbol we are adding.internal_errorpublic void remove(symbol sym) throws internal_error
sym - the symbol we are removing.internal_errorpublic boolean add(symbol_set other) throws internal_error
other - the set we are adding in.internal_errorpublic void remove(symbol_set other) throws internal_error
other - the set we are removing.internal_errorpublic boolean equals(symbol_set other)
public boolean equals(Object other)
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.