Interface Reference2ShortSortedMap.FastSortedEntrySet<K>

All Superinterfaces:
Collection<Reference2ShortMap.Entry<K>>, Iterable<Reference2ShortMap.Entry<K>>, ObjectBidirectionalIterable<Reference2ShortMap.Entry<K>>, ObjectCollection<Reference2ShortMap.Entry<K>>, ObjectIterable<Reference2ShortMap.Entry<K>>, ObjectSet<Reference2ShortMap.Entry<K>>, ObjectSortedSet<Reference2ShortMap.Entry<K>>, Reference2ShortMap.FastEntrySet<K>, Set<Reference2ShortMap.Entry<K>>, SortedSet<Reference2ShortMap.Entry<K>>
Enclosing interface:
Reference2ShortSortedMap<K>

public static interface Reference2ShortSortedMap.FastSortedEntrySet<K> extends ObjectSortedSet<Reference2ShortMap.Entry<K>>, Reference2ShortMap.FastEntrySet<K>
A sorted 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 entry objects. Some fastutil maps might return entry set objects of type FastSortedEntrySet: 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).

  • Method Details