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
public interface MutableLongCollection extends LongIterable
This file was automatically generated from template file mutablePrimitiveCollection.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and Type Method 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)
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, 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
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:
Collection.retainAll(Collection)
-
retainAll
boolean retainAll(long... source)- Since:
- 5.0
- See Also:
Collection.retainAll(Collection)
-
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.
-