|
|||||||||
| 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
org.intermine.util.ConsistentSet
public class ConsistentSet
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(java.lang.Object obj)
Add an object to the set. |
boolean |
addAll(java.util.Collection col)
Add a whole Collection of objects to the set. |
java.util.Iterator |
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(java.lang.Object obj)
add in interface java.util.Collectionadd in interface java.util.Setadd in class java.util.AbstractCollectionobj - the object to be added
Set#addpublic boolean addAll(java.util.Collection col)
addAll in interface java.util.CollectionaddAll in interface java.util.SetaddAll in class java.util.AbstractCollectioncol - the Collection of objects to be added
Set#addAllpublic int size()
size in interface java.util.Collectionsize in interface java.util.Setsize in class java.util.AbstractCollectionpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Setiterator in class java.util.AbstractCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||