Interface MutableLongCollection
- All Superinterfaces:
LongIterable
,PrimitiveIterable
- All Known Subinterfaces:
MutableLongBag
,MutableLongList
,MutableLongSet
- All Known Implementing Classes:
AbstractMutableLongKeySet
,AbstractSynchronizedLongCollection
,AbstractUnmodifiableLongCollection
,LongArrayList
,LongHashBag
,LongHashSet
,SynchronizedLongBag
,SynchronizedLongCollection
,SynchronizedLongList
,SynchronizedLongSet
,UnmodifiableLongBag
,UnmodifiableLongCollection
,UnmodifiableLongList
,UnmodifiableLongSet
This file was automatically generated from template file mutablePrimitiveCollection.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(long element) boolean
addAll
(long... source) boolean
addAll
(LongIterable source) 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.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.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) 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) with
(long element) withAll
(LongIterable elements) without
(long element) withoutAll
(LongIterable elements) Methods inherited from interface org.eclipse.collections.api.LongIterable
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, toSortedListBy
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Method Details
-
longIterator
MutableLongIterator longIterator()Description copied from interface:LongIterable
Returns a primitive iterator that can be used to iterate over the LongIterable in an imperative style.- Specified by:
longIterator
in interfaceLongIterable
-
add
boolean add(long element) -
addAll
boolean addAll(long... source) -
addAll
-
remove
boolean remove(long value) -
removeAll
-
removeAll
boolean removeAll(long... source) -
removeIf
- Since:
- 9.1
-
retainAll
- Since:
- 5.0
- See Also:
-
retainAll
boolean retainAll(long... source) - Since:
- 5.0
- See Also:
-
clear
void clear() -
select
Description copied from interface:LongIterable
Returns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.- Specified by:
select
in interfaceLongIterable
-
reject
Description copied from interface:LongIterable
Returns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.- Specified by:
reject
in interfaceLongIterable
-
collect
Description copied from interface:LongIterable
Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collect
in interfaceLongIterable
-
with
-
without
-
withAll
-
withoutAll
-
asUnmodifiable
MutableLongCollection asUnmodifiable() -
asSynchronized
MutableLongCollection asSynchronized() -
toImmutable
ImmutableLongCollection toImmutable() -
tap
- Specified by:
tap
in interfaceLongIterable
- Since:
- 9.0.
-
newEmpty
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-