IntIterable, IntList, MutableIntCollection, OrderedIntIterable, PrimitiveIterable, ReversibleIntIterableIntArrayList, SynchronizedIntList, UnmodifiableIntListpublic interface MutableIntList extends MutableIntCollection, IntList
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addAllAtIndex(int index,
int... source) |
|
boolean |
addAllAtIndex(int index,
IntIterable source) |
|
void |
addAtIndex(int index,
int element) |
|
MutableIntList |
asSynchronized() |
|
MutableIntList |
asUnmodifiable() |
|
<V> MutableList<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> MutableList<V> |
collectWithIndex(IntIntToObjectFunction<? extends V> function) |
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
MutableIntList |
distinct() |
|
default MutableIntList |
newEmpty() |
Creates a new empty mutable version of the same List type.
|
MutableIntList |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
int |
removeAtIndex(int index) |
|
MutableIntList |
reverseThis() |
|
MutableIntList |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
int |
set(int index,
int element) |
|
MutableIntList |
sortThis() |
Sorts this list mutating its contents and returns the same mutable list (this).
|
MutableIntList |
subList(int fromIndex,
int toIndex) |
|
default MutableIntList |
tap(IntProcedure procedure) |
|
ImmutableIntList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableIntList |
toReversed() |
|
MutableIntList |
with(int element) |
|
MutableIntList |
withAll(IntIterable elements) |
|
MutableIntList |
without(int element) |
|
MutableIntList |
withoutAll(IntIterable elements) |
|
default <T> MutableList<IntObjectPair<T>> |
zip(java.lang.Iterable<T> list) |
Returns a
MutableList formed from this MutableIntList and a ListIterable by
combining corresponding elements in pairs. |
default MutableList<IntIntPair> |
zipInt(IntIterable iterable) |
Returns a
MutableList formed from this MutableIntList 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, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListbinarySearch, dotProduct, equals, get, hashCode, lastIndexOfadd, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllcollectWithIndex, forEachWithIndex, getFirst, indexOfappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringasReversed, getLast, injectIntoWithIndexvoid addAtIndex(int index,
int element)
boolean addAllAtIndex(int index,
int... source)
boolean addAllAtIndex(int index,
IntIterable source)
int removeAtIndex(int index)
int set(int index,
int element)
MutableIntList select(IntPredicate predicate)
IntIterableselect in interface IntIterableselect in interface IntListselect in interface MutableIntCollectionselect in interface OrderedIntIterableselect in interface ReversibleIntIterableMutableIntList reject(IntPredicate predicate)
IntIterablereject in interface IntIterablereject in interface IntListreject in interface MutableIntCollectionreject in interface OrderedIntIterablereject in interface ReversibleIntIterableMutableIntList with(int element)
with in interface MutableIntCollectionMutableIntList without(int element)
without in interface MutableIntCollectionMutableIntList withAll(IntIterable elements)
withAll in interface MutableIntCollectionMutableIntList withoutAll(IntIterable elements)
withoutAll in interface MutableIntCollectiondefault MutableIntList tap(IntProcedure procedure)
tap in interface IntIterabletap in interface IntListtap in interface MutableIntCollection<V> MutableList<V> collect(IntToObjectFunction<? extends V> function)
IntIterablecollect in interface IntIterablecollect in interface IntListcollect in interface MutableIntCollectioncollect in interface OrderedIntIterablecollect in interface ReversibleIntIterabledefault <V> MutableList<V> collectWithIndex(IntIntToObjectFunction<? extends V> function)
collectWithIndex in interface IntListcollectWithIndex in interface OrderedIntIterablecollectWithIndex in interface ReversibleIntIterableMutableIntList reverseThis()
MutableIntList toReversed()
toReversed in interface IntListtoReversed in interface ReversibleIntIterableMutableIntList distinct()
distinct in interface IntListdistinct in interface ReversibleIntIterableMutableIntList sortThis()
MutableIntList asUnmodifiable()
asUnmodifiable in interface MutableIntCollectionMutableIntList asSynchronized()
asSynchronized in interface MutableIntCollectionImmutableIntList toImmutable()
toImmutable in interface IntListtoImmutable in interface MutableIntCollectionMutableIntList subList(int fromIndex, int toIndex)
default MutableList<IntIntPair> zipInt(IntIterable iterable)
MutableList formed from this MutableIntList and another IntList by
combining corresponding elements in pairs. If one of the two IntLists is longer than the other, its
remaining elements are ignored.default <T> MutableList<IntObjectPair<T>> zip(java.lang.Iterable<T> list)
MutableList formed from this MutableIntList 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.default MutableIntList newEmpty()
newEmpty in interface MutableIntCollectionCopyright © 2004–2018. All rights reserved.