LongIterable
, OrderedLongIterable
, PrimitiveIterable
, ReversibleLongIterable
ImmutableLongList
, MutableLongList
LongArrayList
, SynchronizedLongList
, UnmodifiableLongList
public interface LongList extends ReversibleLongIterable
Modifier and Type | Method | 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(java.lang.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 java.util.stream.LongStream |
primitiveParallelStream() |
|
default java.util.stream.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.
|
java.util.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(java.lang.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. |
allSatisfy, 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, toBag, toList, toSet, toSortedArray, toSortedList
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
long get(int index)
long dotProduct(LongList list)
int binarySearch(long value)
int lastIndexOf(long value)
LongList select(LongPredicate predicate)
LongIterable
select
in interface LongIterable
select
in interface OrderedLongIterable
select
in interface ReversibleLongIterable
LongList reject(LongPredicate predicate)
LongIterable
reject
in interface LongIterable
reject
in interface OrderedLongIterable
reject
in interface ReversibleLongIterable
default LongList tap(LongProcedure procedure)
tap
in interface LongIterable
<V> ListIterable<V> collect(LongToObjectFunction<? extends V> function)
LongIterable
collect
in interface LongIterable
collect
in interface OrderedLongIterable
collect
in interface ReversibleLongIterable
default <V> ListIterable<V> collectWithIndex(LongIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedLongIterable
collectWithIndex
in interface ReversibleLongIterable
boolean equals(java.lang.Object o)
List.equals(Object)
.equals
in class java.lang.Object
int hashCode()
List.hashCode()
.hashCode
in class java.lang.Object
ImmutableLongList toImmutable()
LongList distinct()
distinct
in interface ReversibleLongIterable
LongList toReversed()
toReversed
in interface ReversibleLongIterable
LongList 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 LongList
s is longer than the other, its
remaining elements are ignored.default <T> ListIterable<LongObjectPair<T>> zip(java.lang.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.java.util.Spliterator.OfLong spliterator()
default java.util.stream.LongStream primitiveStream()
default java.util.stream.LongStream primitiveParallelStream()
Copyright © 2004–2020. All rights reserved.