ImmutableLongCollection, LongBag, LongIterable, PrimitiveIterablepublic interface ImmutableLongBag extends ImmutableLongCollection, LongBag
| Modifier and Type | Method | Description |
|---|---|---|
ImmutableList<LongIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> ImmutableBag<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.
|
ImmutableLongBag |
newWith(long element) |
|
ImmutableLongBag |
newWithAll(LongIterable elements) |
|
ImmutableLongBag |
newWithout(long element) |
|
ImmutableLongBag |
newWithoutAll(LongIterable elements) |
|
ImmutableLongBag |
reject(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return false for the specified predicate.
|
ImmutableLongBag |
select(LongPredicate predicate) |
Returns a new LongIterable with all of the elements in the LongIterable that
return true for the specified predicate.
|
ImmutableLongBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default ImmutableLongBag |
selectDuplicates() |
Returns all elements of the bag that have more than one occurrence.
|
default ImmutableLongSet |
selectUnique() |
Returns all elements of the bag that have exactly one occurrence.
|
default ImmutableLongBag |
tap(LongProcedure procedure) |
|
ImmutableList<LongIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable, toStringOfItemToCountallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableLongBag select(LongPredicate predicate)
LongIterableselect in interface ImmutableLongCollectionselect in interface LongBagselect in interface LongIterableImmutableLongBag reject(LongPredicate predicate)
LongIterablereject in interface ImmutableLongCollectionreject in interface LongBagreject in interface LongIterabledefault ImmutableLongBag tap(LongProcedure procedure)
tap in interface ImmutableLongCollectiontap in interface LongBagtap in interface LongIterableImmutableLongBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface LongBagdefault ImmutableLongBag selectDuplicates()
selectDuplicates in interface LongBagdefault ImmutableLongSet selectUnique()
selectUnique in interface LongBagImmutableList<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 LongBagImmutableList<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 LongBag<V> ImmutableBag<V> collect(LongToObjectFunction<? extends V> function)
LongIterablecollect in interface ImmutableLongCollectioncollect in interface LongBagcollect in interface LongIterableImmutableLongBag newWith(long element)
newWith in interface ImmutableLongCollectionImmutableLongBag newWithout(long element)
newWithout in interface ImmutableLongCollectionImmutableLongBag newWithAll(LongIterable elements)
newWithAll in interface ImmutableLongCollectionImmutableLongBag newWithoutAll(LongIterable elements)
newWithoutAll in interface ImmutableLongCollectionCopyright © 2004–2018. All rights reserved.