ImmutableIntCollection, IntBag, IntIterable, PrimitiveIterablepublic interface ImmutableIntBag extends ImmutableIntCollection, IntBag
| Modifier and Type | Method | Description |
|---|---|---|
ImmutableList<IntIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(IntToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
ImmutableIntBag |
newWith(int element) |
|
ImmutableIntBag |
newWithAll(IntIterable elements) |
|
ImmutableIntBag |
newWithout(int element) |
|
ImmutableIntBag |
newWithoutAll(IntIterable elements) |
|
ImmutableIntBag |
reject(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return false for the specified predicate.
|
ImmutableIntBag |
select(IntPredicate predicate) |
Returns a new IntIterable with all of the elements in the IntIterable that
return true for the specified predicate.
|
ImmutableIntBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default ImmutableIntBag |
selectDuplicates() |
Returns all elements of the bag that have more than one occurrence.
|
ImmutableIntSet |
selectUnique() |
Returns all elements of the bag that have exactly one occurrence.
|
default ImmutableIntBag |
tap(IntProcedure procedure) |
|
ImmutableList<IntIntPair> |
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, intIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableIntBag select(IntPredicate predicate)
IntIterableselect in interface ImmutableIntCollectionselect in interface IntBagselect in interface IntIterableImmutableIntBag reject(IntPredicate predicate)
IntIterablereject in interface ImmutableIntCollectionreject in interface IntBagreject in interface IntIterabledefault ImmutableIntBag tap(IntProcedure procedure)
tap in interface ImmutableIntCollectiontap in interface IntBagtap in interface IntIterableImmutableIntBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface IntBagdefault ImmutableIntBag selectDuplicates()
selectDuplicates in interface IntBagImmutableIntSet selectUnique()
selectUnique 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)
IntIterablecollect 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–2020. All rights reserved.