public interface MutableLongList extends MutableLongCollection, LongList
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
long... source) |
boolean |
addAllAtIndex(int index,
LongIterable source) |
void |
addAtIndex(int index,
long element) |
MutableLongList |
asSynchronized() |
MutableLongList |
asUnmodifiable() |
<V> MutableList<V> |
collect(LongToObjectFunction<? 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(LongIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
MutableLongList |
distinct() |
default MutableLongList |
newEmpty()
Creates a new empty mutable version of the same List type.
|
MutableLongList |
reject(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
long |
removeAtIndex(int index) |
MutableLongList |
reverseThis() |
MutableLongList |
select(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
long |
set(int index,
long element) |
default MutableLongList |
shuffleThis()
Randomly permutes this list mutating its contents and returns the same list (this).
|
default MutableLongList |
shuffleThis(Random rnd)
Randomly permutes this list mutating its contents and returns the same list (this).
|
MutableLongList |
sortThis()
Sorts this list mutating its contents and returns the same mutable list (this).
|
default MutableLongList |
sortThis(LongComparator comparator)
Sorts the internal data structure of this list and returns the list itself as a convenience.
|
default <T> MutableLongList |
sortThisBy(LongToObjectFunction<T> function)
Sorts the internal data structure of this list based on the natural order of the key returned by
function. |
default <T> MutableLongList |
sortThisBy(LongToObjectFunction<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. |
MutableLongList |
subList(int fromIndex,
int toIndex) |
default void |
swap(int index1,
int index2) |
default MutableLongList |
tap(LongProcedure procedure) |
ImmutableLongList |
toImmutable()
Returns an immutable copy of this list.
|
MutableLongList |
toReversed() |
MutableLongList |
with(long element) |
MutableLongList |
withAll(LongIterable elements) |
MutableLongList |
without(long element) |
MutableLongList |
withoutAll(LongIterable elements) |
default <T> MutableList<LongObjectPair<T>> |
zip(Iterable<T> list)
Returns a
MutableList formed from this MutableLongList and a ListIterable by
combining corresponding elements in pairs. |
default MutableList<LongLongPair> |
zipLong(LongIterable iterable)
Returns a
MutableList formed from this MutableLongList and another LongList by
combining corresponding elements in pairs. |
add, addAll, addAll, clear, longIterator, 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,
long element)
boolean addAllAtIndex(int index,
long... source)
boolean addAllAtIndex(int index,
LongIterable source)
long removeAtIndex(int index)
long set(int index,
long element)
default void swap(int index1,
int index2)
MutableLongList select(LongPredicate predicate)
LongIterableselect in interface LongIterableselect in interface LongListselect in interface MutableLongCollectionselect in interface OrderedLongIterableselect in interface ReversibleLongIterableMutableLongList reject(LongPredicate predicate)
LongIterablereject in interface LongIterablereject in interface LongListreject in interface MutableLongCollectionreject in interface OrderedLongIterablereject in interface ReversibleLongIterableMutableLongList with(long element)
with in interface MutableLongCollectionMutableLongList without(long element)
without in interface MutableLongCollectionMutableLongList withAll(LongIterable elements)
withAll in interface MutableLongCollectionMutableLongList withoutAll(LongIterable elements)
withoutAll in interface MutableLongCollectiondefault MutableLongList tap(LongProcedure procedure)
tap in interface LongIterabletap in interface LongListtap in interface MutableLongCollection<V> MutableList<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterablecollect in interface LongListcollect in interface MutableLongCollectioncollect in interface OrderedLongIterablecollect in interface ReversibleLongIterabledefault <V> MutableList<V> collectWithIndex(LongIntToObjectFunction<? extends V> function)
collectWithIndex in interface LongListcollectWithIndex in interface OrderedLongIterablecollectWithIndex in interface ReversibleLongIterableMutableLongList reverseThis()
MutableLongList toReversed()
toReversed in interface LongListtoReversed in interface ReversibleLongIterableMutableLongList distinct()
distinct in interface LongListdistinct in interface ReversibleLongIterableMutableLongList sortThis()
default MutableLongList sortThis(LongComparator comparator)
default <T> MutableLongList sortThisBy(LongToObjectFunction<T> function)
function.default <T> MutableLongList sortThisBy(LongToObjectFunction<T> function, Comparator<? super T> comparator)
function using the provided comparator.default MutableLongList shuffleThis()
java.util.Random as the source of randomness.default MutableLongList shuffleThis(Random rnd)
MutableLongList asUnmodifiable()
asUnmodifiable in interface MutableLongCollectionMutableLongList asSynchronized()
asSynchronized in interface MutableLongCollectionImmutableLongList toImmutable()
toImmutable in interface LongListtoImmutable in interface MutableLongCollectionMutableLongList subList(int fromIndex, int toIndex)
subList in interface LongListList.subList(int fromIndex, int toIndex)default MutableList<LongLongPair> zipLong(LongIterable iterable)
MutableList formed from this MutableLongList and another LongList by
combining corresponding elements in pairs. If one of the two LongLists is longer than the other, its
remaining elements are ignored.default <T> MutableList<LongObjectPair<T>> zip(Iterable<T> list)
MutableList formed from this MutableLongList 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 MutableLongList newEmpty()
newEmpty in interface MutableLongCollectionCopyright © 2004–2021. All rights reserved.