|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
org.intermine.util.ConsistentSet<E>
E - The element typepublic class ConsistentSet<E>
A Set that allows for its member objects to be changed whilst still belonging to the set. Normally, this would result in unspecified behavior, as the hashCode() for the objects may change once added. If elements are changed so that two elements are made equal, behaviour is unspecified.
| Constructor Summary | |
|---|---|
ConsistentSet()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(E obj)
Add an object to the set. |
boolean |
addAll(java.util.Collection<? extends E> col)
Add a whole Collection of objects to the set. |
java.util.Iterator<E> |
iterator()
Return an iterator for the elements in the Set. |
int |
size()
Return the number of elements in this Set. |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public ConsistentSet()
| Method Detail |
|---|
public boolean add(E obj)
add in interface java.util.Collection<E>add in interface java.util.Set<E>add in class java.util.AbstractCollection<E>obj - the object to be added
Set#addpublic boolean addAll(java.util.Collection<? extends E> col)
addAll in interface java.util.Collection<E>addAll in interface java.util.Set<E>addAll in class java.util.AbstractCollection<E>col - the Collection of objects to be added
Set#addAllpublic int size()
size in interface java.util.Collection<E>size in interface java.util.Set<E>size in class java.util.AbstractCollection<E>public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E>iterator in interface java.util.Collection<E>iterator in interface java.util.Set<E>iterator in class java.util.AbstractCollection<E>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||