public class IdentitySet<T>
extends java.lang.Object
implements java.lang.Iterable<T>
Constructor and Description |
---|
IdentitySet() |
IdentitySet(java.lang.Iterable<T> copy) |
Modifier and Type | Method and Description |
---|---|
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() |
public IdentitySet()
public IdentitySet(java.lang.Iterable<T> copy)
public boolean add(T t)
public boolean contains(T t)
public void remove(T t)
public void removeall(java.lang.Iterable<T> coll)
public void clear()
public int size()
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public void addAll(java.util.Collection<T> c)
public void addAll(IdentitySet<T> c)
public void removeAll(java.lang.Iterable<T> prev)