|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
has to provide the functionality of HashSet
| Method Summary | |
boolean |
add(java.lang.Object o)
add element (cf HashSet) |
boolean |
addAll(java.util.Collection c)
add Collection (cf HashSet) |
ToolHashSet |
and(ToolHashSet h)
ToolHashSet containing elements common to this and h |
java.lang.Object |
clone()
shallow copy |
boolean |
contains(java.lang.Object o)
does this contain an element? |
void |
debug()
|
java.util.Iterator |
iterator()
create an Iterator |
ToolHashSet |
not(ToolHashSet h)
ToolHashSet containing elements in this but not h |
ToolHashSet |
or(ToolHashSet h)
ToolHashSet containing elements in either this and h |
boolean |
remove(java.lang.Object o)
remove element (cf HashSet) |
boolean |
removeAll(java.util.Collection c)
remove just those elements in Collection (cf HashSet) |
boolean |
retainAll(java.util.Collection c)
retain just those elements in Collection (cf HashSet) |
int |
size()
size of Set |
ToolHashSet |
xor(ToolHashSet h)
ToolHashSet containing elements in this or h but not both |
| Method Detail |
public void debug()
public ToolHashSet and(ToolHashSet h)
public ToolHashSet or(ToolHashSet h)
public ToolHashSet not(ToolHashSet h)
public ToolHashSet xor(ToolHashSet h)
public boolean contains(java.lang.Object o)
Object - o is this in Set?public boolean add(java.lang.Object o)
Object - o to addpublic boolean remove(java.lang.Object o)
Object - o to removepublic boolean addAll(java.util.Collection c)
Collection - c to addpublic boolean retainAll(java.util.Collection c)
Collection - c to retainpublic boolean removeAll(java.util.Collection c)
Collection - c to removepublic java.lang.Object clone()
public java.util.Iterator iterator()
public int size()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||