public interface MutableIntList extends MutableIntCollection, IntList
| Modifier and Type | Method and 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) |
default MutableIntList |
shuffleThis()
Randomly permutes this list mutating its contents and returns the same list (this).
|
default MutableIntList |
shuffleThis(Random rnd)
Randomly permutes this list mutating its contents and returns the same list (this).
|
MutableIntList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
default MutableIntList |
sortThis(IntComparator comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
default <T> MutableIntList |
sortThisBy(IntToObjectFunction<T> function)
Sorts the internal data structure of this list based on the natural order of the key returned by
function. |
default <T> MutableIntList |
sortThisBy(IntToObjectFunction<T> function,
Comparator<? super T> comparator)
Sorts the internal data structure of this list based on the key returned by
function using the provided comparator. |
MutableIntList |
subList(int fromIndex,
int toIndex) |
default void |
swap(int index1,
int index2) |
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(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. |
add, addAll, addAll, clear, intIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllbinarySearch, dotProduct, equals, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliteratorasReversed, getLast, injectIntoWithIndexcollectWithIndex, forEachWithIndex, getFirst, indexOfallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid 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)
default void swap(int index1,
int index2)
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()
default MutableIntList sortThis(IntComparator comparator)
default <T> MutableIntList sortThisBy(IntToObjectFunction<T> function)
function.default <T> MutableIntList sortThisBy(IntToObjectFunction<T> function, Comparator<? super T> comparator)
function using the provided comparator.default MutableIntList shuffleThis()
java.util.Random as the source of randomness.default MutableIntList shuffleThis(Random rnd)
MutableIntList asUnmodifiable()
asUnmodifiable in interface MutableIntCollectionMutableIntList asSynchronized()
asSynchronized in interface MutableIntCollectionImmutableIntList toImmutable()
toImmutable in interface IntListtoImmutable in interface MutableIntCollectionMutableIntList subList(int fromIndex, int toIndex)
subList in interface IntListList.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(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–2021. All rights reserved.