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, toImmutableallSatisfy, 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, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableIntBag select(IntPredicate predicate)
select in interface ImmutableIntCollectionselect in interface IntBagselect in interface IntIterableImmutableIntBag reject(IntPredicate predicate)
reject in interface ImmutableIntCollectionreject in interface IntBagreject in interface IntIterableImmutableIntBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface IntBagImmutableList<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 IntBagImmutableList<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 ImmutableIntCollectioncollect in interface IntBagcollect in interface IntIterableImmutableIntBag newWith(int element)
newWith in interface ImmutableIntCollectionImmutableIntBag newWithout(int element)
newWithout in interface ImmutableIntCollectionImmutableIntBag newWithAll(IntIterable elements)
newWithAll in interface ImmutableIntCollectionImmutableIntBag newWithoutAll(IntIterable elements)
newWithoutAll in interface ImmutableIntCollectionCopyright © 2004–2016. All rights reserved.