- advance
Calls next() on iterator, either numberToAdvance times or until hasNext()
returns false, whichever c
- forArray
Returns a list iterator containing the elements in the specified range of array
in order, starting a
- singletonIterator
Returns an iterator containing only value.The Iterable equivalent of this method
is Collections#sing
- concat
Combines multiple iterators into a single iterator. The returned iterator
iterates across the elemen
- cycle
Returns an iterator that cycles indefinitely over the provided elements.The
returned iterator suppor
- getOnlyElement
Returns the single element contained in iterator, or defaultValue if the
iterator is empty.
- transform
Returns a view containing the result of applying function to each element of
fromIterator.The return
- unmodifiableIterator
Simply returns its argument.
- addAll
Adds all elements in iterator to collection. The iterator will be left
exhausted: its hasNext() meth
- all
Returns true if every element returned by iteratorsatisfies the given predicate.
If iterator is empt
- any
Returns true if one or more elements returned by iteratorsatisfy the given
predicate.
- cast
Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557