com.mongodb.util
Class IdentitySet<T>

java.lang.Object
  extended by com.mongodb.util.IdentitySet<T>
All Implemented Interfaces:
Iterable<T>

public class IdentitySet<T>
extends Object
implements Iterable<T>


Constructor Summary
IdentitySet()
           
IdentitySet(Iterable<T> copy)
           
 
Method Summary
 boolean add(T t)
           
 void addAll(Collection<T> c)
           
 void addAll(IdentitySet<T> c)
           
 void clear()
           
 boolean contains(T t)
           
 Iterator<T> iterator()
           
 void remove(T t)
           
 void removeall(Iterable<T> coll)
           
 void removeAll(Iterable<T> prev)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentitySet

public IdentitySet()

IdentitySet

public IdentitySet(Iterable<T> copy)
Method Detail

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)