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)
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
ImmutableShortBag |
newWith(short element) |
ImmutableShortBag |
newWithAll(ShortIterable elements) |
ImmutableShortBag |
newWithout(short element) |
ImmutableShortBag |
newWithoutAll(ShortIterable elements) |
ImmutableShortBag |
reject(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
ImmutableShortBag |
select(ShortPredicate predicate)
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
ImmutableShortBag |
selectByOccurrences(IntPredicate predicate)
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default ImmutableShortBag |
selectDuplicates()
Returns all elements of the bag that have more than one occurrence.
|
ImmutableShortSet |
selectUnique()
Returns all elements of the bag that have exactly one occurrence.
|
default ImmutableShortBag |
tap(ShortProcedure procedure) |
ImmutableList<ShortIntPair> |
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, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, shortIterator, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringImmutableShortBag select(ShortPredicate predicate)
ShortIterableselect in interface ImmutableShortCollectionselect in interface ShortBagselect in interface ShortIterableImmutableShortBag reject(ShortPredicate predicate)
ShortIterablereject in interface ImmutableShortCollectionreject in interface ShortBagreject in interface ShortIterabledefault ImmutableShortBag tap(ShortProcedure procedure)
tap in interface ImmutableShortCollectiontap in interface ShortBagtap in interface ShortIterableImmutableShortBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface ShortBagdefault ImmutableShortBag selectDuplicates()
selectDuplicates in interface ShortBagImmutableShortSet selectUnique()
selectUnique in interface ShortBagImmutableList<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 ShortBagImmutableList<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)
ShortIterablecollect in interface ImmutableShortCollectioncollect in interface ShortBagcollect in interface ShortIterableImmutableShortBag newWith(short element)
newWith in interface ImmutableShortCollectionImmutableShortBag newWithout(short element)
newWithout in interface ImmutableShortCollectionImmutableShortBag newWithAll(ShortIterable elements)
newWithAll in interface ImmutableShortCollectionImmutableShortBag newWithoutAll(ShortIterable elements)
newWithoutAll in interface ImmutableShortCollectionCopyright © 2004–2020. All rights reserved.