it.unimi.dsi.fastutil.doubles
Interface Double2ShortMap.FastEntrySet
- All Superinterfaces:
- Collection<Double2ShortMap.Entry>, Iterable<Double2ShortMap.Entry>, ObjectCollection<Double2ShortMap.Entry>, ObjectIterable<Double2ShortMap.Entry>, ObjectSet<Double2ShortMap.Entry>, Set<Double2ShortMap.Entry>
- All Known Subinterfaces:
- Double2ShortSortedMap.FastSortedEntrySet
- Enclosing interface:
- Double2ShortMap
public static interface Double2ShortMap.FastEntrySet
- extends ObjectSet<Double2ShortMap.Entry>
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 Double2ShortMap.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<Double2ShortMap.Entry> 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
Double2ShortMap.Entry
object, suitably mutated.
Copyright © 2011. All Rights Reserved.