public interface ImmutableShortList extends ImmutableShortCollection, ShortList
| Modifier and Type | Method and Description |
|---|---|
<V> ImmutableList<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> ImmutableList<V> |
collectWithIndex(ShortIntToObjectFunction<? extends V> function)
Returns a new ImmutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
ImmutableShortList |
distinct() |
ImmutableShortList |
newWith(short element) |
ImmutableShortList |
newWithAll(ShortIterable elements) |
ImmutableShortList |
newWithout(short element) |
ImmutableShortList |
newWithoutAll(ShortIterable elements) |
ImmutableShortList |
reject(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
ImmutableShortList |
select(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
ImmutableShortList |
subList(int fromIndex,
int toIndex) |
default ImmutableShortList |
tap(ShortProcedure procedure) |
ImmutableShortList |
toReversed() |
default <T> ImmutableList<ShortObjectPair<T>> |
zip(Iterable<T> iterable)
Returns an
ImmutableList formed from this ImmutableShortList and a ListIterable by
combining corresponding elements in pairs. |
default ImmutableList<ShortShortPair> |
zipShort(ShortIterable iterable)
Returns an
ImmutableList formed from this ImmutableShortList and another ShortList by
combining corresponding elements in pairs. |
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf, toImmutableasReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOfallSatisfy, 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, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableShortList select(ShortPredicate predicate)
ShortIterableselect in interface ImmutableShortCollectionselect in interface OrderedShortIterableselect in interface ReversibleShortIterableselect in interface ShortIterableselect in interface ShortListImmutableShortList reject(ShortPredicate predicate)
ShortIterablereject in interface ImmutableShortCollectionreject in interface OrderedShortIterablereject in interface ReversibleShortIterablereject in interface ShortIterablereject in interface ShortListdefault ImmutableShortList tap(ShortProcedure procedure)
tap in interface ImmutableShortCollectiontap in interface ShortIterabletap in interface ShortList<V> ImmutableList<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface ImmutableShortCollectioncollect in interface OrderedShortIterablecollect in interface ReversibleShortIterablecollect in interface ShortIterablecollect in interface ShortListdefault <V> ImmutableList<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedShortIterablecollectWithIndex in interface ReversibleShortIterablecollectWithIndex in interface ShortListImmutableShortList newWith(short element)
newWith in interface ImmutableShortCollectionImmutableShortList newWithout(short element)
newWithout in interface ImmutableShortCollectionImmutableShortList newWithAll(ShortIterable elements)
newWithAll in interface ImmutableShortCollectionImmutableShortList newWithoutAll(ShortIterable elements)
newWithoutAll in interface ImmutableShortCollectionImmutableShortList toReversed()
toReversed in interface ReversibleShortIterabletoReversed in interface ShortListImmutableShortList distinct()
distinct in interface ReversibleShortIterabledistinct in interface ShortListImmutableShortList subList(int fromIndex, int toIndex)
subList in interface ShortListList.subList(int fromIndex, int toIndex)default ImmutableList<ShortShortPair> zipShort(ShortIterable iterable)
ImmutableList formed from this ImmutableShortList and another ShortList by
combining corresponding elements in pairs. If one of the two ShortLists is longer than the other, its
remaining elements are ignored.default <T> ImmutableList<ShortObjectPair<T>> zip(Iterable<T> iterable)
ImmutableList formed from this ImmutableShortList and a ListIterable by
combining corresponding elements in pairs. If one of the two Lists is longer than the other, its
remaining elements are ignored.Copyright © 2004–2020. All rights reserved.