public interface ImmutableLongBag extends ImmutableLongCollection, LongBag
Modifier and Type | Method and Description |
---|---|
ImmutableList<LongIntPair> |
bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(LongToObjectFunction<? extends V> function) |
ImmutableLongBag |
newWith(long element) |
ImmutableLongBag |
newWithAll(LongIterable elements) |
ImmutableLongBag |
newWithout(long element) |
ImmutableLongBag |
newWithoutAll(LongIterable elements) |
ImmutableLongBag |
reject(LongPredicate predicate) |
ImmutableLongBag |
select(LongPredicate predicate) |
ImmutableLongBag |
selectByOccurrences(IntPredicate predicate)
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
ImmutableList<LongIntPair> |
topOccurrences(int count)
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, longIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableLongBag select(LongPredicate predicate)
select
in interface ImmutableLongCollection
select
in interface LongBag
select
in interface LongIterable
ImmutableLongBag reject(LongPredicate predicate)
reject
in interface ImmutableLongCollection
reject
in interface LongBag
reject
in interface LongIterable
ImmutableLongBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface LongBag
ImmutableList<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 LongBag
ImmutableList<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)
collect
in interface ImmutableLongCollection
collect
in interface LongBag
collect
in interface LongIterable
ImmutableLongBag newWith(long element)
newWith
in interface ImmutableLongCollection
ImmutableLongBag newWithout(long element)
newWithout
in interface ImmutableLongCollection
ImmutableLongBag newWithAll(LongIterable elements)
newWithAll
in interface ImmutableLongCollection
ImmutableLongBag newWithoutAll(LongIterable elements)
newWithoutAll
in interface ImmutableLongCollection
Copyright © 2004–2016. All rights reserved.