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