public interface IntList extends ReversibleIntIterable
| Modifier and Type | Method and 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.
|
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) |
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.
|
IntList |
subList(int fromIndex,
int toIndex) |
ImmutableIntList |
toImmutable()
Returns an immutable copy of this list.
|
IntList |
toReversed() |
asReversed, getLast, injectIntoWithIndexforEachWithIndex, getFirst, indexOfallSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, intIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringint get(int index)
long dotProduct(IntList list)
int binarySearch(int value)
int lastIndexOf(int value)
IntList select(IntPredicate predicate)
IntIterableselect in interface IntIterableselect in interface OrderedIntIterableselect in interface ReversibleIntIterableIntList reject(IntPredicate predicate)
IntIterablereject in interface IntIterablereject in interface OrderedIntIterablereject in interface ReversibleIntIterable<V> ListIterable<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterablecollect in interface OrderedIntIterablecollect in interface ReversibleIntIterableboolean equals(Object o)
List.equals(Object).int hashCode()
List.hashCode().ImmutableIntList toImmutable()
IntList distinct()
distinct in interface ReversibleIntIterableIntList toReversed()
toReversed in interface ReversibleIntIterableIntList subList(int fromIndex, int toIndex)
List#subList(int fromIndex, int toIndex)}Copyright © 2004–2017. All rights reserved.