Interface MutableLongCollection
- All Superinterfaces:
LongIterable,PrimitiveIterable
- All Known Subinterfaces:
MutableLongBag,MutableLongList,MutableLongSet
This file was automatically generated from template file mutablePrimitiveCollection.stg.
- Since:
- 3.0.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(long element) booleanaddAll(long... source) booleanaddAll(LongIterable source) voidclear()<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 MutableLongCollectionnewEmpty()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.booleanremove(long value) booleanremoveAll(long... source) booleanremoveAll(LongIterable source) default booleanremoveIf(LongPredicate predicate) booleanretainAll(long... source) booleanretainAll(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 MutableLongCollectiontap(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, toSortedListByMethods 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:LongIterableReturns a primitive iterator that can be used to iterate over the LongIterable in an imperative style.- Specified by:
longIteratorin 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:LongIterableReturns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.- Specified by:
selectin interfaceLongIterable
-
reject
Description copied from interface:LongIterableReturns a new LongIterable with all of the elements in the LongIterable that return false for the specified predicate.- Specified by:
rejectin interfaceLongIterable
-
collect
Description copied from interface:LongIterableReturns 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:
collectin interfaceLongIterable
-
with
-
without
-
withAll
-
withoutAll
-
asUnmodifiable
MutableLongCollection asUnmodifiable() -
asSynchronized
MutableLongCollection asSynchronized() -
toImmutable
ImmutableLongCollection toImmutable() -
tap
- Specified by:
tapin interfaceLongIterable- Since:
- 9.0.
-
newEmpty
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-