Interface CharIterable
-
- All Known Subinterfaces:
CharCollection,CharList,CharSet
- All Known Implementing Classes:
AbstractCharCollection,AbstractCharList,AbstractCharList.CharSubList,AbstractCharSet,CharArrayList
public interface CharIterable extends Iterable<Character>
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 CharIteratoriterator()Returns a type-specific iterator.-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
iterator
CharIterator iterator()
Returns a type-specific iterator. Note that this specification strengthens the one given inIterable.iterator().
-
-