Package com.adobe.internal.util
Class WeakHashSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet
-
- com.adobe.internal.util.WeakHashSet
-
- All Implemented Interfaces:
java.lang.Iterable
,java.util.Collection
,java.util.Set
public class WeakHashSet extends java.util.AbstractSet implements java.util.Set
TheWeakHashSet
is an implementation of theSet
interface that uses aWeakHashMap
.
-
-
Constructor Summary
Constructors Constructor Description WeakHashSet()
WeakHashSet(int initialCapacity)
WeakHashSet(int initialCapacity, float loadFactor)
WeakHashSet(java.util.Collection c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(java.lang.Object obj)
void
clear()
boolean
contains(java.lang.Object obj)
boolean
isEmpty()
java.util.Iterator
iterator()
boolean
remove(java.lang.Object obj)
int
size()
-
-
-
Method Detail
-
iterator
public java.util.Iterator iterator()
- Specified by:
iterator
in interfacejava.util.Collection
- Specified by:
iterator
in interfacejava.lang.Iterable
- Specified by:
iterator
in interfacejava.util.Set
- Specified by:
iterator
in classjava.util.AbstractCollection
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection
- Specified by:
size
in interfacejava.util.Set
- Specified by:
size
in classjava.util.AbstractCollection
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection
- Specified by:
isEmpty
in interfacejava.util.Set
- Overrides:
isEmpty
in classjava.util.AbstractCollection
-
contains
public boolean contains(java.lang.Object obj)
- Specified by:
contains
in interfacejava.util.Collection
- Specified by:
contains
in interfacejava.util.Set
- Overrides:
contains
in classjava.util.AbstractCollection
-
add
public boolean add(java.lang.Object obj)
- Specified by:
add
in interfacejava.util.Collection
- Specified by:
add
in interfacejava.util.Set
- Overrides:
add
in classjava.util.AbstractCollection
-
remove
public boolean remove(java.lang.Object obj)
- Specified by:
remove
in interfacejava.util.Collection
- Specified by:
remove
in interfacejava.util.Set
- Overrides:
remove
in classjava.util.AbstractCollection
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection
- Specified by:
clear
in interfacejava.util.Set
- Overrides:
clear
in classjava.util.AbstractCollection
-
-