java.lang.Iterable<K>Int2BooleanMap.FastEntrySet, Int2IntMap.FastEntrySet, Int2ObjectMap.FastEntrySet<V>, Object2IntMap.FastEntrySet<K>, ObjectCollection<K>, ObjectList<K>, ObjectSet<K>AbstractObjectCollection, AbstractObjectList, AbstractObjectList.ObjectSubList, AbstractObjectSet, ObjectArrayList, ObjectArraySetpublic interface ObjectIterable<K>
extends java.lang.Iterable<K>
Iterable that strengthens that specification of
Iterable.iterator().
Warning: Java will let you write “colon”
for statements with primitive-type loop variables; however, what
is (unfortunately) really happening is that at each iteration an unboxing
(and, in the case of fastutil type-specific data structures, a
boxing) will be performed. Watch out.
Iterable| Modifier and Type | Method | Description |
|---|---|---|
ObjectIterator<K> |
iterator() |
Returns a type-specific iterator.
|
ObjectIterator<K> iterator()
Iterable.iterator().iterator in interface java.lang.Iterable<K>