public interface ImmutableByteBag extends ImmutableByteCollection, ByteBag
Modifier and Type | Method and Description |
---|---|
ImmutableList<ByteIntPair> |
bottomOccurrences(int count)
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(ByteToObjectFunction<? extends V> function) |
ImmutableByteBag |
newWith(byte element) |
ImmutableByteBag |
newWithAll(ByteIterable elements) |
ImmutableByteBag |
newWithout(byte element) |
ImmutableByteBag |
newWithoutAll(ByteIterable elements) |
ImmutableByteBag |
reject(BytePredicate predicate) |
ImmutableByteBag |
select(BytePredicate predicate) |
ImmutableByteBag |
selectByOccurrences(IntPredicate predicate)
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
ImmutableList<ByteIntPair> |
topOccurrences(int count)
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable
allSatisfy, anySatisfy, asLazy, average, byteIterator, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableByteBag select(BytePredicate predicate)
select
in interface ByteBag
select
in interface ByteIterable
select
in interface ImmutableByteCollection
ImmutableByteBag reject(BytePredicate predicate)
reject
in interface ByteBag
reject
in interface ByteIterable
reject
in interface ImmutableByteCollection
ImmutableByteBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface ByteBag
ImmutableList<ByteIntPair> 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 ByteBag
ImmutableList<ByteIntPair> 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 ByteBag
<V> ImmutableBag<V> collect(ByteToObjectFunction<? extends V> function)
collect
in interface ByteBag
collect
in interface ByteIterable
collect
in interface ImmutableByteCollection
ImmutableByteBag newWith(byte element)
newWith
in interface ImmutableByteCollection
ImmutableByteBag newWithout(byte element)
newWithout
in interface ImmutableByteCollection
ImmutableByteBag newWithAll(ByteIterable elements)
newWithAll
in interface ImmutableByteCollection
ImmutableByteBag newWithoutAll(ByteIterable elements)
newWithoutAll
in interface ImmutableByteCollection
Copyright © 2004–2016. All rights reserved.