|
BRUtil - Making Java a Kinder, Gentler, Place to be. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--brutil.HashSet
| Inner Class Summary | |
protected class |
HashSet.Table
|
| Constructor Summary | |
HashSet()
|
|
| Method Summary | |
java.lang.Object |
add(java.lang.Object elt)
Add the specified object to the Set. |
void |
clear()
Removes all the items from this HashSet |
boolean |
contains(java.lang.Object elt)
Tells if the specified object is contained within this set. |
java.lang.Object |
find(java.lang.Object elt)
|
boolean |
isEmpty()
Returns true if the Collection contains no elements, false otherwise |
java.util.Iterator |
iterator()
Returns an iterator over the elements in the set. |
java.lang.Object |
remove(java.lang.Object elt)
Removes the specified object from the Set, if present. |
int |
size()
Returns the number of elements in the Set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HashSet()
| Method Detail |
public java.lang.Object add(java.lang.Object elt)
add in interface Seto - The object to add to the Set.Object that was overwritten byte this add
null otherwise.public boolean contains(java.lang.Object elt)
contains in interface Seto - The object to search for in the Set.
return size;true if the object is contained in the
set, false otherwise.public java.util.Iterator iterator()
Setiterator in interface Setbrutil.Setpublic boolean isEmpty()
CollectionisEmpty in interface Settrue if the Set is empty, false
otherwise.public void clear()
clear in interface Collectionpublic java.lang.Object remove(java.lang.Object elt)
remove in interface Seto - The object to remove.Object if the object was in the Set,
null otherwise.public java.lang.Object find(java.lang.Object elt)
find in interface Setbrutil.Set.equals()public int size()
size in interface Collection
|
BRUtil - Making Java a Kinder, Gentler, Place to be. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||