it.unimi.dsi.fastutil.objects
Class AbstractObjectSet
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObjectCollection
it.unimi.dsi.fastutil.objects.AbstractObjectSet
- All Implemented Interfaces:
- Cloneable, Collection, ObjectCollection, ObjectSet, Set
- Direct Known Subclasses:
- AbstractObjectSortedSet, ObjectOpenCustomHashSet, ObjectOpenHashSet, ObjectSets.Singleton
- public abstract class AbstractObjectSet
- extends AbstractObjectCollection
- implements Cloneable, ObjectSet
An abstract class providing basic methods for sets implementing a type-specific interface.
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection |
add, addAll, clear, containsAll, isEmpty, iterator, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray |
equals
public boolean equals(Object o)
- Specified by:
equals in interface Set
hashCode
public int hashCode()
- Returns a hash code for this set.
The hash code of a set is computed by summing the hash codes of
its elements.
- Specified by:
hashCode in interface Set
- Returns:
- a hash code for this set.
iterator
public ObjectBidirectionalIterator iterator(Object from)
rem
public boolean rem(Object k)
- Delegates to
remove().
- Overrides:
rem in class AbstractObjectCollection
- Parameters:
k - the element to be removed.
- Returns:
- true if the set was modified.
remove
public boolean remove(Object k)
- Description copied from interface:
ObjectSet
- Note that the corresponding method of the type-specific collection is
rem().
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List interface.
- Specified by:
remove in interface ObjectSet- Overrides:
remove in class AbstractObjectCollection