Interface ObjectIterable<K>
-
- All Superinterfaces:
Iterable<K>
- All Known Subinterfaces:
Char2ObjectMap.FastEntrySet<V>,ObjectCollection<K>,ObjectList<K>,ObjectSet<K>
- All Known Implementing Classes:
AbstractObjectCollection,AbstractObjectList,AbstractObjectList.ObjectSubList,AbstractObjectSet,ObjectArrayList
public interface ObjectIterable<K> extends Iterable<K>
A type-specificIterablethat strengthens that specification ofIterable.iterator().Warning: Java will let you write “colon”
forstatements with primitive-type loop variables; however, what is (unfortunately) really happening is that at each iteration an unboxing (and, in the case offastutiltype-specific data structures, a boxing) will be performed. Watch out.- See Also:
Iterable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectIterator<K>iterator()Returns a type-specific iterator.-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
iterator
ObjectIterator<K> iterator()
Returns a type-specific iterator. Note that this specification strengthens the one given inIterable.iterator().
-
-