com.mongodb.util
Class IdentitySet<T>
java.lang.Object
com.mongodb.util.IdentitySet<T>
- All Implemented Interfaces:
- java.lang.Iterable<T>
public class IdentitySet<T>
- extends java.lang.Object
- implements java.lang.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(java.lang.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(java.lang.Iterable<T> coll)
clear
public void clear()
size
public int size()
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<T>
addAll
public void addAll(java.util.Collection<T> c)
addAll
public void addAll(IdentitySet<T> c)
removeAll
public void removeAll(java.lang.Iterable<T> prev)