ImmutableIntCollection
, IntBag
, IntIterable
, PrimitiveIterable
public 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, toStringOfItemToCount
allSatisfy, 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, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableIntBag select(IntPredicate predicate)
IntIterable
select
in interface ImmutableIntCollection
select
in interface IntBag
select
in interface IntIterable
ImmutableIntBag reject(IntPredicate predicate)
IntIterable
reject
in interface ImmutableIntCollection
reject
in interface IntBag
reject
in interface IntIterable
default ImmutableIntBag tap(IntProcedure procedure)
tap
in interface ImmutableIntCollection
tap
in interface IntBag
tap
in interface IntIterable
ImmutableIntBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface IntBag
default ImmutableIntBag selectDuplicates()
selectDuplicates
in interface IntBag
ImmutableIntSet selectUnique()
selectUnique
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)
IntIterable
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–2019. All rights reserved.