IntIterable
, OrderedIntIterable
, PrimitiveIterable
, ReversibleIntIterable
ImmutableIntList
, MutableIntList
CodePointAdapter
, CodePointList
, IntArrayList
, IntInterval
, SynchronizedIntList
, UnmodifiableIntList
public interface IntList extends ReversibleIntIterable
Modifier and Type | Method | Description |
---|---|---|
int |
binarySearch(int value) |
|
<V> ListIterable<V> |
collect(IntToObjectFunction<? 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(IntIntToObjectFunction<? extends V> function) |
Returns a new ListIterable using results obtained by applying the specified function to each element
and its corresponding index.
|
IntList |
distinct() |
|
long |
dotProduct(IntList list) |
|
boolean |
equals(Object o) |
Follows the same general contract as
List.equals(Object) . |
int |
get(int index) |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode() . |
int |
lastIndexOf(int value) |
|
default IntStream |
primitiveParallelStream() |
|
default IntStream |
primitiveStream() |
|
IntList |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
IntList |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
Spliterator.OfInt |
spliterator() |
|
IntList |
subList(int fromIndex,
int toIndex) |
|
default IntList |
tap(IntProcedure procedure) |
|
ImmutableIntList |
toImmutable() |
Returns an immutable copy of this list.
|
IntList |
toReversed() |
|
default <T> ListIterable<IntObjectPair<T>> |
zip(Iterable<T> iterable) |
Returns a
ListIterable formed from this IntList and a ListIterable by
combining corresponding elements in pairs. |
default ListIterable<IntIntPair> |
zipInt(IntIterable iterable) |
Returns a
ListIterable formed from this IntList and another IntList 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, intIterator, 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
int get(int index)
long dotProduct(IntList list)
int binarySearch(int value)
int lastIndexOf(int value)
IntList select(IntPredicate predicate)
IntIterable
select
in interface IntIterable
select
in interface OrderedIntIterable
select
in interface ReversibleIntIterable
IntList reject(IntPredicate predicate)
IntIterable
reject
in interface IntIterable
reject
in interface OrderedIntIterable
reject
in interface ReversibleIntIterable
default IntList tap(IntProcedure procedure)
tap
in interface IntIterable
<V> ListIterable<V> collect(IntToObjectFunction<? extends V> function)
IntIterable
collect
in interface IntIterable
collect
in interface OrderedIntIterable
collect
in interface ReversibleIntIterable
default <V> ListIterable<V> collectWithIndex(IntIntToObjectFunction<? extends V> function)
collectWithIndex
in interface OrderedIntIterable
collectWithIndex
in interface ReversibleIntIterable
boolean equals(Object o)
List.equals(Object)
.int hashCode()
List.hashCode()
.ImmutableIntList toImmutable()
IntList distinct()
distinct
in interface ReversibleIntIterable
IntList toReversed()
toReversed
in interface ReversibleIntIterable
IntList subList(int fromIndex, int toIndex)
List.subList(int fromIndex, int toIndex)
default ListIterable<IntIntPair> zipInt(IntIterable iterable)
ListIterable
formed from this IntList
and another IntList
by
combining corresponding elements in pairs. If one of the two IntList
s is longer than the other, its
remaining elements are ignored.default <T> ListIterable<IntObjectPair<T>> zip(Iterable<T> iterable)
ListIterable
formed from this IntList
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.OfInt spliterator()
default IntStream primitiveStream()
default IntStream primitiveParallelStream()
Copyright © 2004–2019. All rights reserved.