|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.util.leap.HashSet
public class HashSet
| Constructor Summary | |
|---|---|
HashSet()
|
|
HashSet(Collection c)
|
|
HashSet(int initialCapacity)
|
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
Adds an element. |
boolean |
addAll(Collection c)
|
void |
clear()
|
java.lang.Object |
clone()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(Collection c)
|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
boolean |
isEmpty()
Checks if the collection contains elements. |
Iterator |
iterator()
Returns an iterator over the elements in this collection. |
boolean |
remove(java.lang.Object o)
Removes one instance of the specified element. |
boolean |
removeAll(Collection c)
|
int |
size()
Returns the number of elements in this collection. |
java.lang.Object[] |
toArray()
Returns an array containing all of the elements in this collection. |
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HashSet()
public HashSet(Collection c)
public HashSet(int initialCapacity)
| Method Detail |
|---|
public boolean add(java.lang.Object o)
Collection
add in interface Collectionpublic boolean isEmpty()
Collection
isEmpty in interface Collectionpublic Iterator iterator()
Collection
iterator in interface Collectionpublic boolean remove(java.lang.Object o)
Collection
remove in interface Collectiono - the element to be removed
public int size()
Collection
size in interface Collectionpublic java.lang.Object[] toArray()
Collection
toArray in interface Collectionpublic void clear()
public boolean contains(java.lang.Object o)
public java.lang.Object clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean addAll(Collection c)
public boolean containsAll(Collection c)
public boolean removeAll(Collection c)
public java.lang.Object[] toArray(java.lang.Object[] a)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||