Class AbstractObjectCollection<K>

java.lang.Object
java.util.AbstractCollection<K>
it.unimi.dsi.fastutil.objects.AbstractObjectCollection<K>
All Implemented Interfaces:
ObjectCollection<K>, ObjectIterable<K>, Iterable<K>, Collection<K>
Direct Known Subclasses:
AbstractObjectBigList, AbstractObjectList, AbstractObjectSet, ObjectCollections.EmptyCollection, ObjectCollections.IterableCollection

public abstract class AbstractObjectCollection<K> extends AbstractCollection<K> implements ObjectCollection<K>
An abstract class providing basic methods for collections implementing a type-specific interface.

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.