Interface MutableLongCollection
-
- All Superinterfaces:
LongIterable,PrimitiveIterable
- All Known Subinterfaces:
MutableLongBag,MutableLongList,MutableLongSet
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 booleanadd(long element)booleanaddAll(long... source)booleanaddAll(LongIterable source)MutableLongCollectionasSynchronized()MutableLongCollectionasUnmodifiable()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.MutableLongIteratorlongIterator()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.MutableLongCollectionreject(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)MutableLongCollectionselect(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)ImmutableLongCollectiontoImmutable()MutableLongCollectionwith(long element)MutableLongCollectionwithAll(LongIterable elements)MutableLongCollectionwithout(long element)MutableLongCollectionwithoutAll(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: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
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:LongIterableReturns a new LongIterable with all of the elements in the LongIterable that return true for the specified predicate.- Specified by:
selectin interfaceLongIterable
-
reject
MutableLongCollection reject(LongPredicate predicate)
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
<V> MutableCollection<V> collect(LongToObjectFunction<? extends V> function)
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
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:
tapin interfaceLongIterable- Since:
- 9.0.
-
newEmpty
default MutableLongCollection newEmpty()
Creates a new empty mutable version of the same collection type.- Since:
- 9.2.
-
-