public abstract class AbstractObjectCollection<K> extends java.util.AbstractCollection<K> implements ObjectCollection<K>
In particular, this class provide iterator(), add(), AbstractCollection.remove(Object) and
AbstractCollection.contains(Object) methods that just call the type-specific counterpart.
Warning: Because of a name clash between the list and collection interfaces
the type-specific deletion method of a type-specific abstract
collection is rem(), rather then remove(). A
subclass must thus override rem(), rather than
remove(), to make all inherited methods work properly.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractObjectCollection() |
| Modifier and Type | Method and Description |
|---|---|
abstract it.unimi.dsi.fastutil.objects.ObjectIterator<K> |
iterator()
Returns a type-specific iterator on the elements of this collection.
|
java.lang.String |
toString() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitspliteratorpublic abstract it.unimi.dsi.fastutil.objects.ObjectIterator<K> iterator()
ObjectCollectioniterator in interface ObjectCollection<K>iterator in interface ObjectIterable<K>iterator in interface java.lang.Iterable<K>iterator in interface java.util.Collection<K>iterator in class java.util.AbstractCollection<K>Iterable.iterator()public java.lang.String toString()
toString in class java.util.AbstractCollection<K>