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.
|
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) |
|
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.
|
LongList |
subList(int fromIndex,
int toIndex) |
|
default LongList |
tap(LongProcedure procedure) |
|
ImmutableLongList |
toImmutable() |
Returns an immutable copy of this list.
|
LongList |
toReversed() |
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
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
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)
Copyright © 2004–2017. All rights reserved.