public interface ImmutableIntBag extends ImmutableIntCollection, IntBag
Modifier and Type | Method and Description |
---|---|
ImmutableList<IntIntPair> |
bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(IntToObjectFunction<? extends V> function) |
ImmutableIntBag |
newWith(int element) |
ImmutableIntBag |
newWithAll(IntIterable elements) |
ImmutableIntBag |
newWithout(int element) |
ImmutableIntBag |
newWithoutAll(IntIterable elements) |
ImmutableIntBag |
reject(IntPredicate predicate) |
ImmutableIntBag |
select(IntPredicate predicate) |
ImmutableIntBag |
selectByOccurrences(IntPredicate predicate)
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
ImmutableList<IntIntPair> |
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, intIterator, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableIntBag select(IntPredicate predicate)
select
in interface ImmutableIntCollection
select
in interface IntBag
select
in interface IntIterable
ImmutableIntBag reject(IntPredicate predicate)
reject
in interface ImmutableIntCollection
reject
in interface IntBag
reject
in interface IntIterable
ImmutableIntBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface IntBag
ImmutableList<IntIntPair> 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 IntBag
ImmutableList<IntIntPair> 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 IntBag
<V> ImmutableBag<V> collect(IntToObjectFunction<? extends V> function)
collect
in interface ImmutableIntCollection
collect
in interface IntBag
collect
in interface IntIterable
ImmutableIntBag newWith(int element)
newWith
in interface ImmutableIntCollection
ImmutableIntBag newWithout(int element)
newWithout
in interface ImmutableIntCollection
ImmutableIntBag newWithAll(IntIterable elements)
newWithAll
in interface ImmutableIntCollection
ImmutableIntBag newWithoutAll(IntIterable elements)
newWithoutAll
in interface ImmutableIntCollection
Copyright © 2004–2016. All rights reserved.