LongBag, LongIterable, MutableLongCollection, PrimitiveIterableLongHashBag, SynchronizedLongBag, UnmodifiableLongBagpublic interface MutableLongBag extends MutableLongCollection, LongBag
| Modifier and Type | Method | Description | 
|---|---|---|
| void | addOccurrences(long item,
              int occurrences) | |
| MutableLongBag | asSynchronized() | |
| MutableLongBag | asUnmodifiable() | |
| MutableList<LongIntPair> | bottomOccurrences(int count) | Returns the  countleast frequently occurring items. | 
| <V> MutableBag<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. | 
| MutableLongBag | reject(LongPredicate predicate) | Returns a new LongIterable with all of the elements in the LongIterable that
 return false for the specified predicate. | 
| boolean | removeOccurrences(long item,
                 int occurrences) | |
| MutableLongBag | select(LongPredicate predicate) | Returns a new LongIterable with all of the elements in the LongIterable that
 return true for the specified predicate. | 
| MutableLongBag | selectByOccurrences(IntPredicate predicate) | Returns all elements of the bag that have a number of occurrences that satisfy the predicate. | 
| default MutableLongBag | tap(LongProcedure procedure) | |
| ImmutableLongBag | toImmutable() | Returns an immutable copy of this bag. | 
| MutableList<LongIntPair> | topOccurrences(int count) | Returns the  countmost frequently occurring items. | 
| MutableLongBag | with(long element) | |
| MutableLongBag | withAll(LongIterable elements) | |
| MutableLongBag | without(long element) | |
| MutableLongBag | withoutAll(LongIterable elements) | 
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinctallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, longIterator, remove, removeAll, removeAll, retainAll, retainAllappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringvoid addOccurrences(long item,
                    int occurrences)
boolean removeOccurrences(long item,
                          int occurrences)
default MutableLongBag tap(LongProcedure procedure)
tap in interface LongBagtap in interface LongIterabletap in interface MutableLongCollectionMutableLongBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface LongBagMutableList<LongIntPair> topOccurrences(int count)
count most frequently occurring items.
 In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last
 item will be returned.topOccurrences in interface LongBagMutableList<LongIntPair> bottomOccurrences(int count)
count least frequently occurring items.
 In the event of a tie, all of the items with the number of occurrences that match the occurrences of the last
 item will be returned.bottomOccurrences in interface LongBagMutableLongBag select(LongPredicate predicate)
LongIterableselect in interface LongBagselect in interface LongIterableselect in interface MutableLongCollectionMutableLongBag reject(LongPredicate predicate)
LongIterablereject in interface LongBagreject in interface LongIterablereject in interface MutableLongCollection<V> MutableBag<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect 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.