com.mongodb.util
Class IdentitySet<T>
java.lang.Object
com.mongodb.util.IdentitySet<T>
- All Implemented Interfaces:
- Iterable<T>
public class IdentitySet<T>
- extends Object
- implements Iterable<T>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentitySet
public IdentitySet()
IdentitySet
public IdentitySet(Iterable<T> copy)
add
public boolean add(T t)
contains
public boolean contains(T t)
remove
public void remove(T t)
removeall
public void removeall(Iterable<T> coll)
clear
public void clear()
size
public int size()
iterator
public Iterator<T> iterator()
- Specified by:
iterator
in interface Iterable<T>
addAll
public void addAll(Collection<T> c)
addAll
public void addAll(IdentitySet<T> c)
removeAll
public void removeAll(Iterable<T> prev)