public class WeakHashSet<T> extends AbstractSet<T>
Set implementation with weak references to contained elements.| Constructor and Description |
|---|
WeakHashSet() |
WeakHashSet(int capacity,
float loadFactor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T o) |
boolean |
addAll(Collection<? extends T> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
int |
size() |
equals, hashCodecontainsAll, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, retainAll, toArray, toArraypublic WeakHashSet()
public WeakHashSet(int capacity,
float loadFactor)
public boolean add(T o)
add in interface Collection<T>add in interface Set<T>add in class AbstractCollection<T>public boolean addAll(Collection<? extends T> c)
addAll in interface Collection<T>addAll in interface Set<T>addAll in class AbstractCollection<T>public void clear()
clear in interface Collection<T>clear in interface Set<T>clear in class AbstractCollection<T>public boolean contains(Object o)
contains in interface Collection<T>contains in interface Set<T>contains in class AbstractCollection<T>public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface Set<T>isEmpty in class AbstractCollection<T>public boolean remove(Object o)
remove in interface Collection<T>remove in interface Set<T>remove in class AbstractCollection<T>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<T>removeAll in interface Set<T>removeAll in class AbstractSet<T>public int size()
size in interface Collection<T>size in interface Set<T>size in class AbstractCollection<T>Copyright © 2014. All rights reserved.