Interface MutableLongCollection
-
- All Superinterfaces:
LongIterable
,PrimitiveIterable
- All Known Subinterfaces:
MutableLongBag
,MutableLongList
,MutableLongSet
- All Known Implementing Classes:
AbstractMutableLongKeySet
,AbstractMutableLongValuesMap.AbstractLongValuesCollection
,AbstractSynchronizedLongCollection
,AbstractUnmodifiableLongCollection
,ByteLongHashMap.ValuesCollection
,CharLongHashMap.ValuesCollection
,DoubleLongHashMap.ValuesCollection
,FloatLongHashMap.ValuesCollection
,IntLongHashMap.ValuesCollection
,LongArrayList
,LongBooleanHashMap.KeySet
,LongByteHashMap.KeySet
,LongCharHashMap.KeySet
,LongDoubleHashMap.KeySet
,LongFloatHashMap.KeySet
,LongHashBag
,LongHashSet
,LongIntHashMap.KeySet
,LongLongHashMap.KeySet
,LongLongHashMap.ValuesCollection
,LongObjectHashMap.KeySet
,LongShortHashMap.KeySet
,ObjectLongHashMap.ValuesCollection
,ObjectLongHashMapWithHashingStrategy.ValuesCollection
,ShortLongHashMap.ValuesCollection
,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
All Methods Instance Methods Abstract Methods Default Methods 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, 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 Detail
-
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
boolean addAll(LongIterable source)
-
remove
boolean remove(long value)
-
removeAll
boolean removeAll(LongIterable source)
-
removeAll
boolean removeAll(long... source)
-
removeIf
default boolean removeIf(LongPredicate predicate)
- Since:
- 9.1
-
retainAll
boolean retainAll(LongIterable elements)
- 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
MutableLongCollection select(LongPredicate predicate)
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
MutableLongCollection reject(LongPredicate predicate)
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
<V> MutableCollection<V> collect(LongToObjectFunction<? extends V> function)
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
MutableLongCollection with(long element)
-
without
MutableLongCollection without(long element)
-
withAll
MutableLongCollection withAll(LongIterable elements)
-
withoutAll
MutableLongCollection withoutAll(LongIterable elements)
-
asUnmodifiable
MutableLongCollection asUnmodifiable()
-
asSynchronized
MutableLongCollection asSynchronized()
-
toImmutable
ImmutableLongCollection toImmutable()
-
tap
default MutableLongCollection tap(LongProcedure procedure)
- Specified by:
tap
in interfaceLongIterable
- Since:
- 9.0.
-
newEmpty
default MutableLongCollection newEmpty()
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-
-