ByteBag
, ByteIterable
, ImmutableByteCollection
, PrimitiveIterable
public interface ImmutableByteBag extends ImmutableByteCollection, ByteBag
Modifier and Type | Method | Description |
---|---|---|
ImmutableList<ByteIntPair> |
bottomOccurrences(int count) |
Returns the
count least frequently occurring items. |
<V> ImmutableBag<V> |
collect(ByteToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
ImmutableByteBag |
newWith(byte element) |
|
ImmutableByteBag |
newWithAll(ByteIterable elements) |
|
ImmutableByteBag |
newWithout(byte element) |
|
ImmutableByteBag |
newWithoutAll(ByteIterable elements) |
|
ImmutableByteBag |
reject(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return false for the specified predicate.
|
ImmutableByteBag |
select(BytePredicate predicate) |
Returns a new ByteIterable with all of the elements in the ByteIterable that
return true for the specified predicate.
|
ImmutableByteBag |
selectByOccurrences(IntPredicate predicate) |
Returns all elements of the bag that have a number of occurrences that satisfy the predicate.
|
default ImmutableByteBag |
selectDuplicates() |
Returns all elements of the bag that have more than one occurrence.
|
default ImmutableByteSet |
selectUnique() |
Returns all elements of the bag that have exactly one occurrence.
|
default ImmutableByteBag |
tap(ByteProcedure procedure) |
|
ImmutableList<ByteIntPair> |
topOccurrences(int count) |
Returns the
count most frequently occurring items. |
equals, forEachWithOccurrences, hashCode, occurrencesOf, sizeDistinct, toImmutable, toStringOfItemToCount
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, byteIterator, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
ImmutableByteBag select(BytePredicate predicate)
ByteIterable
select
in interface ByteBag
select
in interface ByteIterable
select
in interface ImmutableByteCollection
ImmutableByteBag reject(BytePredicate predicate)
ByteIterable
reject
in interface ByteBag
reject
in interface ByteIterable
reject
in interface ImmutableByteCollection
default ImmutableByteBag tap(ByteProcedure procedure)
tap
in interface ByteBag
tap
in interface ByteIterable
tap
in interface ImmutableByteCollection
ImmutableByteBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences
in interface ByteBag
default ImmutableByteBag selectDuplicates()
selectDuplicates
in interface ByteBag
default ImmutableByteSet selectUnique()
selectUnique
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)
ByteIterable
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–2018. All rights reserved.