it.unimi.dsi.fastutil.objects
Interface Object2ObjectMap.FastEntrySet<K,V>
- All Superinterfaces:
- Collection<Object2ObjectMap.Entry<K,V>>, Iterable<Object2ObjectMap.Entry<K,V>>, ObjectCollection<Object2ObjectMap.Entry<K,V>>, ObjectIterable<Object2ObjectMap.Entry<K,V>>, ObjectSet<Object2ObjectMap.Entry<K,V>>, Set<Object2ObjectMap.Entry<K,V>>
- All Known Subinterfaces:
- Object2ObjectSortedMap.FastSortedEntrySet<K,V>
- Enclosing interface:
- Object2ObjectMap<K,V>
public static interface Object2ObjectMap.FastEntrySet<K,V>
- extends ObjectSet<Object2ObjectMap.Entry<K,V>>
An entry set providing fast iteration.
In some cases (e.g., hash-based classes) iteration over an entry set requires the creation
of a large number of Object2ObjectMap.Entry
objects. Some fastutil
maps might return entry set objects of type FastEntrySet
: in this case, fastIterator()
will return an iterator that is guaranteed not to create a large number of objects, possibly
by returning always the same entry (of course, mutated).
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArray |
fastIterator
ObjectIterator<Object2ObjectMap.Entry<K,V>> fastIterator()
- Returns a fast iterator over this entry set; the iterator might return always the same entry object, suitably mutated.
- Returns:
- a fast iterator over this entry set; the iterator might return always the same
Object2ObjectMap.Entry
object, suitably mutated.