OrderedShortIterable
, PrimitiveIterable
, ReversibleShortIterable
, ShortIterable
ImmutableShortList
, MutableShortList
ShortArrayList
, SynchronizedShortList
, UnmodifiableShortList
public interface ShortList extends ReversibleShortIterable
Modifier and Type | Method | Description |
---|---|---|
int |
binarySearch(short value) |
|
<V> ListIterable<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> ListIterable<V> |
collectWithIndex(ShortIntToObjectFunction<? extends V> function) |
Returns a new ListIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
ShortList |
distinct() |
|
long |
dotProduct(ShortList list) |
|
boolean |
equals(Object o) |
Follows the same general contract as
List.equals(Object) . |
short |
get(int index) |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode() . |
int |
lastIndexOf(short value) |
|
ShortList |
reject(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
ShortList |
select(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
ShortList |
subList(int fromIndex,
int toIndex) |
|
default ShortList |
tap(ShortProcedure procedure) |
|
ImmutableShortList |
toImmutable() |
Returns an immutable copy of this list.
|
ShortList |
toReversed() |
|
default <T> ListIterable<ShortObjectPair<T>> |
zip(Iterable<T> iterable) |
Returns a
ListIterable formed from this ShortList and a ListIterable by
combining corresponding elements in pairs. |
default ListIterable<ShortShortPair> |
zipShort(ShortIterable iterable) |
Returns a
ListIterable formed from this ShortList and another ShortList by
combining corresponding elements in pairs. |
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
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, toArray, toBag, toList, toSet, toSortedArray, toSortedList
short get(int index)
long dotProduct(ShortList list)
int binarySearch(short value)
int lastIndexOf(short value)
ShortList select(ShortPredicate predicate)
ShortIterable
select
in interface OrderedShortIterable
select
in interface ReversibleShortIterable
select
in interface ShortIterable
ShortList reject(ShortPredicate predicate)
ShortIterable
reject
in interface OrderedShortIterable
reject
in interface ReversibleShortIterable
reject
in interface ShortIterable
default ShortList tap(ShortProcedure procedure)
tap
in interface ShortIterable
<V> ListIterable<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterable
collect
in interface OrderedShortIterable
collect
in interface ReversibleShortIterable
collect
in interface ShortIterable
default <V> ListIterable<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedShortIterable
collectWithIndex
in interface ReversibleShortIterable
boolean equals(Object o)
List.equals(Object)
.int hashCode()
List.hashCode()
.ImmutableShortList toImmutable()
ShortList distinct()
distinct
in interface ReversibleShortIterable
ShortList toReversed()
toReversed
in interface ReversibleShortIterable
ShortList subList(int fromIndex, int toIndex)
List.subList(int fromIndex, int toIndex)
default ListIterable<ShortShortPair> zipShort(ShortIterable iterable)
ListIterable
formed from this ShortList
and another ShortList
by
combining corresponding elements in pairs. If one of the two ShortList
s is longer than the other, its
remaining elements are ignored.default <T> ListIterable<ShortObjectPair<T>> zip(Iterable<T> iterable)
ListIterable
formed from this ShortList
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–2019. All rights reserved.