Package com.adobe.internal.util
Class WeakHashSet
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
com.adobe.internal.util.WeakHashSet
- All Implemented Interfaces:
Iterable,Collection,Set
The
WeakHashSet is an implementation of the Set
interface that uses a WeakHashMap.-
Constructor Summary
ConstructorsConstructorDescriptionWeakHashSet(int initialCapacity) WeakHashSet(int initialCapacity, float loadFactor) -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
WeakHashSet
public WeakHashSet() -
WeakHashSet
-
WeakHashSet
public WeakHashSet(int initialCapacity, float loadFactor) -
WeakHashSet
public WeakHashSet(int initialCapacity)
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceCollection- Specified by:
iteratorin interfaceIterable- Specified by:
iteratorin interfaceSet- Specified by:
iteratorin classAbstractCollection
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceSet- Specified by:
sizein classAbstractCollection
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceSet- Overrides:
isEmptyin classAbstractCollection
-
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceSet- Overrides:
containsin classAbstractCollection
-
add
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceSet- Overrides:
addin classAbstractCollection
-
remove
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceSet- Overrides:
removein classAbstractCollection
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceSet- Overrides:
clearin classAbstractCollection
-