E
- the type of the elementsN
- the type of what kind of RubyContract.Enumerator
should be usedZ
- the type to define if some methods are lazy or eager loadingstatic interface RubyContract.Enumerator<E,N extends RubyContract.Enumerator<?,?,?>,Z extends RubyContract.Enumerable<?,?,?>> extends RubyContract.Enumerable<E,N,Z>, java.lang.Iterable<E>, java.util.Iterator<E>
RubyContract.Enumerator
defines all methods of a Ruby Enumerator should have.Modifier and Type | Method and Description |
---|---|
E |
peek()
Returns the next element without advancing the iteration.
|
N |
rewind()
Rewinds this Iterator to the beginning.
|
allʔ, allʔ, anyʔ, anyʔ, chunk, chunk, collect, collect, collect, collectConcat, collectConcat, count, count, cycle, cycle, cycle, cycle, detect, detect, drop, dropWhile, dropWhile, each, each, eachCons, eachCons, eachEntry, eachEntry, eachSlice, eachSlice, eachWithIndex, eachWithIndex, eachWithObject, eachWithObject, entries, find, find, findAll, findAll, findIndex, findIndex, findIndex, first, first, flatMap, flatMap, grep, grep, grep, groupBy, groupBy, groupBy, includeʔ, inject, inject, inject, inject, lazy, map, map, map, max, max, maxBy, maxBy, maxBy, maxBy, memberʔ, min, min, minBy, minBy, minBy, minBy, minmax, minmax, minmaxBy, minmaxBy, minmaxBy, minmaxBy, noneʔ, noneʔ, oneʔ, oneʔ, partition, partition, reduce, reduce, reduce, reduce, reject, reject, reverseEach, reverseEach, select, select, sliceBefore, sliceBefore, sort, sortBy, sortBy, sortBy, sortBy, sortBy, take, takeWhile, takeWhile, toA, zip, zip, zip
N rewind()
RubyContract.Enumerator
E peek()