public interface LongList extends ReversibleLongIterable
| Modifier and Type | Method and Description |
|---|---|
int |
binarySearch(long value) |
<V> ListIterable<V> |
collect(LongToObjectFunction<? 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(LongIntToObjectFunction<? extends V> function)
Returns a new ListIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
LongList |
distinct() |
long |
dotProduct(LongList list) |
boolean |
equals(Object o)
Follows the same general contract as
List.equals(Object). |
long |
get(int index) |
int |
hashCode()
Follows the same general contract as
List.hashCode(). |
int |
lastIndexOf(long value) |
default LongStream |
primitiveParallelStream() |
default LongStream |
primitiveStream() |
LongList |
reject(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
LongList |
select(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
Spliterator.OfLong |
spliterator() |
LongList |
subList(int fromIndex,
int toIndex) |
default LongList |
tap(LongProcedure procedure) |
ImmutableLongList |
toImmutable()
Returns an immutable copy of this list.
|
LongList |
toReversed() |
default <T> ListIterable<LongObjectPair<T>> |
zip(Iterable<T> iterable)
Returns a
ListIterable formed from this LongList and a ListIterable by
combining corresponding elements in pairs. |
default ListIterable<LongLongPair> |
zipLong(LongIterable iterable)
Returns a
ListIterable formed from this LongList and another LongList by
combining corresponding elements in pairs. |
asReversed, 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, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringlong get(int index)
long dotProduct(LongList list)
int binarySearch(long value)
int lastIndexOf(long value)
LongList select(LongPredicate predicate)
LongIterableselect in interface LongIterableselect in interface OrderedLongIterableselect in interface ReversibleLongIterableLongList reject(LongPredicate predicate)
LongIterablereject in interface LongIterablereject in interface OrderedLongIterablereject in interface ReversibleLongIterabledefault LongList tap(LongProcedure procedure)
tap in interface LongIterable<V> ListIterable<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface OrderedLongIterablecollect in interface ReversibleLongIterabledefault <V> ListIterable<V> collectWithIndex(LongIntToObjectFunction<? extends V> function)
collectWithIndex in interface OrderedLongIterablecollectWithIndex in interface ReversibleLongIterableboolean equals(Object o)
List.equals(Object).int hashCode()
List.hashCode().ImmutableLongList toImmutable()
LongList distinct()
distinct in interface ReversibleLongIterableLongList toReversed()
toReversed in interface ReversibleLongIterableLongList subList(int fromIndex, int toIndex)
List.subList(int fromIndex, int toIndex)default ListIterable<LongLongPair> zipLong(LongIterable iterable)
ListIterable formed from this LongList and another LongList by
combining corresponding elements in pairs. If one of the two LongLists is longer than the other, its
remaining elements are ignored.default <T> ListIterable<LongObjectPair<T>> zip(Iterable<T> iterable)
ListIterable formed from this LongList 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.Spliterator.OfLong spliterator()
default LongStream primitiveStream()
default LongStream primitiveParallelStream()
Copyright © 2004–2020. All rights reserved.