LongIterable
, LongList
, MutableLongCollection
, OrderedLongIterable
, PrimitiveIterable
, ReversibleLongIterable
LongArrayList
, SynchronizedLongList
, UnmodifiableLongList
public interface MutableLongList extends MutableLongCollection, LongList
Modifier and Type | Method | 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) |
|
MutableLongList |
sortThis() |
Sorts this list mutating its contents and returns the same mutable list (this).
|
MutableLongList |
subList(int fromIndex,
int toIndex) |
|
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. |
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, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
binarySearch, dotProduct, equals, get, hashCode, lastIndexOf, primitiveParallelStream, primitiveStream, spliterator
add, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
collectWithIndex, forEachWithIndex, getFirst, indexOf
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
asReversed, getLast, injectIntoWithIndex
void 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)
MutableLongList select(LongPredicate predicate)
LongIterable
select
in interface LongIterable
select
in interface LongList
select
in interface MutableLongCollection
select
in interface OrderedLongIterable
select
in interface ReversibleLongIterable
MutableLongList reject(LongPredicate predicate)
LongIterable
reject
in interface LongIterable
reject
in interface LongList
reject
in interface MutableLongCollection
reject
in interface OrderedLongIterable
reject
in interface ReversibleLongIterable
MutableLongList with(long element)
with
in interface MutableLongCollection
MutableLongList without(long element)
without
in interface MutableLongCollection
MutableLongList withAll(LongIterable elements)
withAll
in interface MutableLongCollection
MutableLongList withoutAll(LongIterable elements)
withoutAll
in interface MutableLongCollection
default MutableLongList tap(LongProcedure procedure)
tap
in interface LongIterable
tap
in interface LongList
tap
in interface MutableLongCollection
<V> MutableList<V> collect(LongToObjectFunction<? extends V> function)
LongIterable
collect
in interface LongIterable
collect
in interface LongList
collect
in interface MutableLongCollection
collect
in interface OrderedLongIterable
collect
in interface ReversibleLongIterable
default <V> MutableList<V> collectWithIndex(LongIntToObjectFunction<? extends V> function)
collectWithIndex
in interface LongList
collectWithIndex
in interface OrderedLongIterable
collectWithIndex
in interface ReversibleLongIterable
MutableLongList reverseThis()
MutableLongList toReversed()
toReversed
in interface LongList
toReversed
in interface ReversibleLongIterable
MutableLongList distinct()
distinct
in interface LongList
distinct
in interface ReversibleLongIterable
MutableLongList sortThis()
MutableLongList asUnmodifiable()
asUnmodifiable
in interface MutableLongCollection
MutableLongList asSynchronized()
asSynchronized
in interface MutableLongCollection
ImmutableLongList toImmutable()
toImmutable
in interface LongList
toImmutable
in interface MutableLongCollection
MutableLongList subList(int fromIndex, int toIndex)
subList
in interface LongList
List.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 LongList
s 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 MutableLongCollection
Copyright © 2004–2019. All rights reserved.