public interface MutableLongBag extends MutableLongCollection, LongBag
Modifier and Type | Method and Description |
---|---|
void |
addOccurrences(long item,
int occurrences) |
MutableLongBag |
asSynchronized() |
MutableLongBag |
asUnmodifiable() |
<V> MutableBag<V> |
collect(LongToObjectFunction<? extends V> function) |
MutableLongBag |
reject(LongPredicate predicate) |
boolean |
removeOccurrences(long item,
int occurrences) |
MutableLongBag |
select(LongPredicate predicate) |
ImmutableLongBag |
toImmutable()
Returns an immutable copy of this bag.
|
MutableLongBag |
with(long element) |
MutableLongBag |
withAll(LongIterable elements) |
MutableLongBag |
without(long element) |
MutableLongBag |
withoutAll(LongIterable elements) |
add, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, retainAll, retainAll
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
void addOccurrences(long item, int occurrences)
boolean removeOccurrences(long item, int occurrences)
MutableLongBag select(LongPredicate predicate)
select
in interface LongBag
select
in interface LongIterable
select
in interface MutableLongCollection
MutableLongBag reject(LongPredicate predicate)
reject
in interface LongBag
reject
in interface LongIterable
reject
in interface MutableLongCollection
<V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
collect
in interface LongBag
collect
in interface LongIterable
collect
in interface MutableLongCollection
MutableLongBag with(long element)
with
in interface MutableLongCollection
MutableLongBag without(long element)
without
in interface MutableLongCollection
MutableLongBag withAll(LongIterable elements)
withAll
in interface MutableLongCollection
MutableLongBag withoutAll(LongIterable elements)
withoutAll
in interface MutableLongCollection
MutableLongBag asUnmodifiable()
asUnmodifiable
in interface MutableLongCollection
MutableLongBag asSynchronized()
asSynchronized
in interface MutableLongCollection
ImmutableLongBag toImmutable()
toImmutable
in interface LongBag
toImmutable
in interface MutableLongCollection
Copyright © 2004–2016. All rights reserved.