net.refractions.udig.core
Class WeakHashSet<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
net.refractions.udig.core.WeakHashSet<T>
- All Implemented Interfaces:
- java.lang.Iterable<T>, java.util.Collection<T>, java.util.Set<T>
public class WeakHashSet<T>
- extends java.util.AbstractSet<T>
- implements java.util.Set<T>
A set backed onto a WeakHashMap. Will not allow nulls
- Since:
- 1.1.0
- Author:
- Jesse
| Methods inherited from class java.util.AbstractSet |
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
retainAll, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
equals, hashCode, retainAll |
WeakHashSet
public WeakHashSet()
size
public int size()
- Specified by:
size in interface java.util.Collection<T>- Specified by:
size in interface java.util.Set<T>- Specified by:
size in class java.util.AbstractCollection<T>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Collection<T>- Specified by:
isEmpty in interface java.util.Set<T>- Overrides:
isEmpty in class java.util.AbstractCollection<T>
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains in interface java.util.Collection<T>- Specified by:
contains in interface java.util.Set<T>- Overrides:
contains in class java.util.AbstractCollection<T>
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator in interface java.lang.Iterable<T>- Specified by:
iterator in interface java.util.Collection<T>- Specified by:
iterator in interface java.util.Set<T>- Specified by:
iterator in class java.util.AbstractCollection<T>
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray in interface java.util.Collection<T>- Specified by:
toArray in interface java.util.Set<T>- Overrides:
toArray in class java.util.AbstractCollection<T>
toArray
public <M> M[] toArray(M[] a)
- Specified by:
toArray in interface java.util.Collection<T>- Specified by:
toArray in interface java.util.Set<T>- Overrides:
toArray in class java.util.AbstractCollection<T>
add
public boolean add(T o)
- Specified by:
add in interface java.util.Collection<T>- Specified by:
add in interface java.util.Set<T>- Overrides:
add in class java.util.AbstractCollection<T>
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove in interface java.util.Collection<T>- Specified by:
remove in interface java.util.Set<T>- Overrides:
remove in class java.util.AbstractCollection<T>
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAll in interface java.util.Collection<T>- Specified by:
containsAll in interface java.util.Set<T>- Overrides:
containsAll in class java.util.AbstractCollection<T>
addAll
public boolean addAll(java.util.Collection<? extends T> c)
- Specified by:
addAll in interface java.util.Collection<T>- Specified by:
addAll in interface java.util.Set<T>- Overrides:
addAll in class java.util.AbstractCollection<T>
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAll in interface java.util.Collection<T>- Specified by:
removeAll in interface java.util.Set<T>- Overrides:
removeAll in class java.util.AbstractSet<T>
clear
public void clear()
- Specified by:
clear in interface java.util.Collection<T>- Specified by:
clear in interface java.util.Set<T>- Overrides:
clear in class java.util.AbstractCollection<T>