public class WeakHashSet extends AbstractSet implements Set
WeakHashSet is an implementation of the Set
interface that uses a WeakHashMap.| Constructor and Description |
|---|
WeakHashSet() |
WeakHashSet(Collection c) |
WeakHashSet(int initialCapacity) |
WeakHashSet(int initialCapacity,
float loadFactor) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object obj) |
void |
clear() |
boolean |
contains(Object obj) |
boolean |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object obj) |
int |
size() |
equals, hashCode, removeAlladdAll, containsAll, retainAll, toArray, toArray, toStringaddAll, containsAll, equals, hashCode, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic WeakHashSet()
public WeakHashSet(Collection c)
public WeakHashSet(int initialCapacity,
float loadFactor)
public WeakHashSet(int initialCapacity)
public Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in class AbstractCollectionpublic int size()
size in interface Collectionsize in interface Setsize in class AbstractCollectionpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetisEmpty in class AbstractCollectionpublic boolean contains(Object obj)
contains in interface Collectioncontains in interface Setcontains in class AbstractCollectionpublic boolean add(Object obj)
add in interface Collectionadd in interface Setadd in class AbstractCollectionpublic boolean remove(Object obj)
remove in interface Collectionremove in interface Setremove in class AbstractCollectionpublic void clear()
clear in interface Collectionclear in interface Setclear in class AbstractCollectionCopyright © 2010 - 2020 Adobe. All Rights Reserved