OrderedShortIterable
, PrimitiveIterable
, ShortIterable
ImmutableShortList
, MutableShortList
, ShortList
ShortArrayList
, SynchronizedShortList
, UnmodifiableShortList
public interface ReversibleShortIterable extends OrderedShortIterable
Modifier and Type | Method | Description |
---|---|---|
LazyShortIterable |
asReversed() |
|
<V> ReversibleIterable<V> |
collect(ShortToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
default <V> ReversibleIterable<V> |
collectWithIndex(ShortIntToObjectFunction<? extends V> function) |
Returns a new ReversibleIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
ReversibleShortIterable |
distinct() |
|
short |
getLast() |
|
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectShortIntToObjectFunction<? super T,? extends T> function) |
|
ReversibleShortIterable |
reject(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
ReversibleShortIterable |
select(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
ReversibleShortIterable |
toReversed() |
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, shortIterator, sum, summaryStatistics, tap, toArray, toBag, toList, toSet, toSortedArray, toSortedList
short getLast()
LazyShortIterable asReversed()
ReversibleShortIterable select(ShortPredicate predicate)
ShortIterable
select
in interface OrderedShortIterable
select
in interface ShortIterable
ReversibleShortIterable reject(ShortPredicate predicate)
ShortIterable
reject
in interface OrderedShortIterable
reject
in interface ShortIterable
<V> ReversibleIterable<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterable
collect
in interface OrderedShortIterable
collect
in interface ShortIterable
default <V> ReversibleIterable<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedShortIterable
ReversibleShortIterable toReversed()
ReversibleShortIterable distinct()
<T> T injectIntoWithIndex(T injectedValue, ObjectShortIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedShortIterable
Copyright © 2004–2019. All rights reserved.