com.mongodb.util
Class IdentitySet<T>

java.lang.Object
  extended by 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>


Constructor Summary
IdentitySet()
           
IdentitySet(java.lang.Iterable<T> copy)
           
 
Method Summary
 boolean add(T t)
           
 void addAll(java.util.Collection<T> c)
           
 void addAll(IdentitySet<T> c)
           
 void clear()
           
 boolean contains(T t)
           
 java.util.Iterator<T> iterator()
           
 void remove(T t)
           
 void removeall(java.lang.Iterable<T> coll)
           
 void removeAll(java.lang.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(java.lang.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(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)