public interface ShortList extends ReversibleShortIterable
| Modifier and Type | Method and 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). |
default void |
forEachInBoth(ShortList other,
ShortShortProcedure procedure)
This method iterates over two CharList instances of the same size together using the specified CharCharProcedure.
|
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.
|
default ShortList |
rejectWithIndex(ShortIntPredicate predicate)
Returns a new ShortList excluding all elements with corresponding indexes matching 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.
|
default ShortList |
selectWithIndex(ShortIntPredicate predicate)
Returns a new ShortList including all elements with corresponding indexes matching 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. |
asReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOf, rejectWithIndex, selectWithIndexallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, shortIterator, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringshort get(int index)
long dotProduct(ShortList list)
int binarySearch(short value)
int lastIndexOf(short value)
ShortList select(ShortPredicate predicate)
ShortIterableselect in interface OrderedShortIterableselect in interface ReversibleShortIterableselect in interface ShortIterableShortList reject(ShortPredicate predicate)
ShortIterablereject in interface OrderedShortIterablereject in interface ReversibleShortIterablereject in interface ShortIterabledefault ShortList tap(ShortProcedure procedure)
tap in interface ShortIterabledefault void forEachInBoth(ShortList other, ShortShortProcedure procedure)
default ShortList selectWithIndex(ShortIntPredicate predicate)
selectWithIndex in interface OrderedShortIterableselectWithIndex in interface ReversibleShortIterabledefault ShortList rejectWithIndex(ShortIntPredicate predicate)
rejectWithIndex in interface OrderedShortIterablerejectWithIndex in interface ReversibleShortIterable<V> ListIterable<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface OrderedShortIterablecollect in interface ReversibleShortIterablecollect in interface ShortIterabledefault <V> ListIterable<V> collectWithIndex(ShortIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedShortIterablecollectWithIndex in interface ReversibleShortIterableboolean equals(Object o)
List.equals(Object).int hashCode()
List.hashCode().ImmutableShortList toImmutable()
ShortList distinct()
distinct in interface ReversibleShortIterableShortList toReversed()
toReversed in interface ReversibleShortIterableShortList 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 ShortLists 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–2023. All rights reserved.