|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.HashSet<E>
@Deprecated public class HashSet<E>
| Constructor Summary | |
|---|---|
HashSet()
Deprecated. |
|
HashSet(Collection<? extends E> rhs)
Deprecated. |
|
| Method Summary | ||
|---|---|---|
boolean |
add(E e)
Deprecated. Adds the specified element to this set if it is not already present |
|
boolean |
addAll(Collection<? extends E> c)
|
|
void |
clear()
Deprecated. Removes all of the elements from this set |
|
boolean |
contains(Object o)
Deprecated. Returns true if this set contains the specified element. |
|
boolean |
containsAll(Collection<?> c)
|
|
boolean |
equals(Object o)
Deprecated. Compares the specified object with this set for equality. |
|
int |
hashCode()
Deprecated. Returns the hash code value for this set. |
|
boolean |
isEmpty()
|
|
Iterator<E> |
iterator()
Deprecated. Returns an iterator over the elements in this set. |
|
boolean |
remove(Object o)
Deprecated. Removes the specified element from this set if it is present. |
|
boolean |
removeAll(Collection<?> c)
|
|
boolean |
retainAll(Collection<?> c)
|
|
int |
size()
Deprecated. Retains only the elements in this set that are contained in the specified collection. |
|
Object[] |
toArray()
|
|
|
toArray(T[] dest)
|
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public HashSet()
public HashSet(Collection<? extends E> rhs)
| Method Detail |
|---|
public boolean add(E e)
Set
add in interface Collection<E>add in interface Set<E>public void clear()
Set
clear in interface Collection<E>clear in interface Set<E>public boolean contains(Object o)
Set
contains in interface Collection<E>contains in interface Set<E>public Iterator<E> iterator()
Set
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface Set<E>public boolean remove(Object o)
Set
remove in interface Collection<E>remove in interface Set<E>public int size()
Set
size in interface Collection<E>size in interface Set<E>public int hashCode()
Set
hashCode in interface Collection<E>hashCode in interface Set<E>hashCode in class Objectpublic boolean equals(Object o)
Set
equals in interface Collection<E>equals in interface Set<E>equals in class Objectpublic boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>public boolean isEmpty()
isEmpty in interface Collection<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>public Object[] toArray()
toArray in interface Collection<E>public <T> T[] toArray(T[] dest)
toArray in interface Collection<E>public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||