public interface MutableLongCollection extends LongIterable
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long element) |
boolean |
addAll(long... source) |
boolean |
addAll(LongIterable source) |
MutableLongCollection |
asSynchronized() |
MutableLongCollection |
asUnmodifiable() |
void |
clear() |
<V> MutableCollection<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.
|
MutableLongIterator |
longIterator()
Returns a primitive iterator that can be used to iterate over the LongIterable in an
imperative style.
|
default MutableLongCollection |
newEmpty()
Creates a new empty mutable version of the same collection type.
|
MutableLongCollection |
reject(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
boolean |
remove(long value) |
boolean |
removeAll(long... source) |
boolean |
removeAll(LongIterable source) |
default boolean |
removeIf(LongPredicate predicate) |
boolean |
retainAll(long... source) |
boolean |
retainAll(LongIterable elements) |
MutableLongCollection |
select(LongPredicate predicate)
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
default MutableLongCollection |
tap(LongProcedure procedure) |
ImmutableLongCollection |
toImmutable() |
MutableLongCollection |
with(long element) |
MutableLongCollection |
withAll(LongIterable elements) |
MutableLongCollection |
without(long element) |
MutableLongCollection |
withoutAll(LongIterable elements) |
allSatisfy, 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, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, 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, toStringMutableLongIterator longIterator()
LongIterablelongIterator in interface LongIterableboolean add(long element)
boolean addAll(long... source)
boolean addAll(LongIterable source)
boolean remove(long value)
boolean removeAll(LongIterable source)
boolean removeAll(long... source)
default boolean removeIf(LongPredicate predicate)
boolean retainAll(LongIterable elements)
Collection.retainAll(Collection)boolean retainAll(long... source)
Collection.retainAll(Collection)void clear()
MutableLongCollection select(LongPredicate predicate)
LongIterableselect in interface LongIterableMutableLongCollection reject(LongPredicate predicate)
LongIterablereject in interface LongIterable<V> MutableCollection<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface LongIterableMutableLongCollection with(long element)
MutableLongCollection without(long element)
MutableLongCollection withAll(LongIterable elements)
MutableLongCollection withoutAll(LongIterable elements)
MutableLongCollection asUnmodifiable()
MutableLongCollection asSynchronized()
ImmutableLongCollection toImmutable()
default MutableLongCollection tap(LongProcedure procedure)
tap in interface LongIterabledefault MutableLongCollection newEmpty()
Copyright © 2004–2022. All rights reserved.