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, retainAllequals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinctallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid addOccurrences(long item,
int occurrences)
boolean removeOccurrences(long item,
int occurrences)
MutableLongBag select(LongPredicate predicate)
select in interface LongBagselect in interface LongIterableselect in interface MutableLongCollectionMutableLongBag reject(LongPredicate predicate)
reject in interface LongBagreject in interface LongIterablereject in interface MutableLongCollection<V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
collect in interface LongBagcollect in interface LongIterablecollect in interface MutableLongCollectionMutableLongBag with(long element)
with in interface MutableLongCollectionMutableLongBag without(long element)
without in interface MutableLongCollectionMutableLongBag withAll(LongIterable elements)
withAll in interface MutableLongCollectionMutableLongBag withoutAll(LongIterable elements)
withoutAll in interface MutableLongCollectionMutableLongBag asUnmodifiable()
asUnmodifiable in interface MutableLongCollectionMutableLongBag asSynchronized()
asSynchronized in interface MutableLongCollectionImmutableLongBag toImmutable()
toImmutable in interface LongBagtoImmutable in interface MutableLongCollectionCopyright © 2004–2017. All rights reserved.