public interface LongList extends ReversibleLongIterable
Modifier and Type | Method and Description |
---|---|
int |
binarySearch(long value) |
<V> ListIterable<V> |
collect(LongToObjectFunction<? extends V> function) |
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) |
LongList |
reject(LongPredicate predicate) |
LongList |
select(LongPredicate predicate) |
LongList |
subList(int fromIndex,
int toIndex) |
ImmutableLongList |
toImmutable()
Returns an immutable copy of this list.
|
LongList |
toReversed() |
asReversed, getLast, injectIntoWithIndex
forEachWithIndex, getFirst, indexOf
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, longIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
long get(int index)
long dotProduct(LongList list)
int binarySearch(long value)
int lastIndexOf(long value)
LongList select(LongPredicate predicate)
select
in interface LongIterable
select
in interface OrderedLongIterable
select
in interface ReversibleLongIterable
LongList reject(LongPredicate predicate)
reject
in interface LongIterable
reject
in interface OrderedLongIterable
reject
in interface ReversibleLongIterable
<V> ListIterable<V> collect(LongToObjectFunction<? extends V> function)
collect
in interface LongIterable
collect
in interface OrderedLongIterable
collect
in interface ReversibleLongIterable
boolean equals(Object o)
List.equals(Object)
.int hashCode()
List.hashCode()
.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–2016. All rights reserved.