Interface Char2ObjectMap.FastEntrySet<V>
-
- All Superinterfaces:
Collection<Char2ObjectMap.Entry<V>>,Iterable<Char2ObjectMap.Entry<V>>,ObjectCollection<Char2ObjectMap.Entry<V>>,ObjectIterable<Char2ObjectMap.Entry<V>>,ObjectSet<Char2ObjectMap.Entry<V>>,Set<Char2ObjectMap.Entry<V>>
- Enclosing interface:
- Char2ObjectMap<V>
public static interface Char2ObjectMap.FastEntrySet<V> extends ObjectSet<Char2ObjectMap.Entry<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
Map.Entryobjects. Somefastutilmaps might return entry set objects of typeFastEntrySet: 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectIterator<Char2ObjectMap.Entry<V>>fastIterator()Returns a fast iterator over this entry set; the iterator might return always the same entry object, suitably mutated.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface org.codelibs.jhighlight.fastutil.objects.ObjectCollection
objectIterator, toArray
-
-
-
-
Method Detail
-
fastIterator
ObjectIterator<Char2ObjectMap.Entry<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
Map.Entryobject, suitably mutated.
-
-