ByteBag, MutableByteBag, ByteIterable, MutableByteCollection, PrimitiveIterablepublic class UnmodifiableByteBag extends AbstractUnmodifiableByteCollection implements MutableByteBag
| Constructor | Description | 
|---|---|
| UnmodifiableByteBag(MutableByteBag bag) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | addOccurrences(byte item,
              int occurrences) | |
| MutableByteBag | asSynchronized() | |
| MutableByteBag | asUnmodifiable() | |
| MutableList<ByteIntPair> | bottomOccurrences(int count) | Returns the  countleast frequently occurring items. | 
| <V> MutableBag<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. | 
| boolean | equals(java.lang.Object otherBag) | Follows the same general contract as  Bag.equals(Object). | 
| void | forEachWithOccurrences(ByteIntProcedure procedure) | For each distinct item, with the number of occurrences, execute the specified procedure. | 
| int | hashCode() | Follows the same general contract as  Bag.hashCode(). | 
| MutableByteBag | newEmpty() | Creates a new empty mutable version of the same Bag type. | 
| int | occurrencesOf(byte item) | The occurrences of a distinct item in the bag. | 
| MutableByteBag | reject(BytePredicate predicate) | Returns a new ByteIterable with all of the elements in the ByteIterable that
 return false for the specified predicate. | 
| boolean | removeOccurrences(byte item,
                 int occurrences) | |
| MutableByteBag | select(BytePredicate predicate) | Returns a new ByteIterable with all of the elements in the ByteIterable that
 return true for the specified predicate. | 
| MutableByteBag | selectByOccurrences(IntPredicate predicate) | Returns all elements of the bag that have a number of occurrences that satisfy the predicate. | 
| MutableByteSet | selectUnique() | Returns all elements of the bag that have exactly one occurrence. | 
| int | sizeDistinct() | The size of the Bag when counting only distinct elements. | 
| ImmutableByteBag | toImmutable() | Returns an immutable copy of this bag. | 
| MutableList<ByteIntPair> | topOccurrences(int count) | Returns the  countmost frequently occurring items. | 
| UnmodifiableByteBag | with(byte element) | |
| UnmodifiableByteBag | withAll(ByteIterable elements) | |
| UnmodifiableByteBag | without(byte element) | |
| UnmodifiableByteBag | withoutAll(ByteIterable elements) | 
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, byteIterator, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringtoStringOfItemToCountallSatisfy, 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, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListselectDuplicates, tapadd, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableByteBag(MutableByteBag bag)
public UnmodifiableByteBag with(byte element)
with in interface MutableByteBagwith in interface MutableByteCollectionwith in class AbstractUnmodifiableByteCollectionpublic UnmodifiableByteBag without(byte element)
without in interface MutableByteBagwithout in interface MutableByteCollectionwithout in class AbstractUnmodifiableByteCollectionpublic UnmodifiableByteBag withAll(ByteIterable elements)
withAll in interface MutableByteBagwithAll in interface MutableByteCollectionwithAll in class AbstractUnmodifiableByteCollectionpublic UnmodifiableByteBag withoutAll(ByteIterable elements)
withoutAll in interface MutableByteBagwithoutAll in interface MutableByteCollectionwithoutAll in class AbstractUnmodifiableByteCollectionpublic void addOccurrences(byte item,
                           int occurrences)
addOccurrences in interface MutableByteBagpublic boolean removeOccurrences(byte item,
                                 int occurrences)
removeOccurrences in interface MutableByteBagpublic int sizeDistinct()
ByteBagsizeDistinct in interface ByteBagpublic int occurrencesOf(byte item)
ByteBagoccurrencesOf in interface ByteBagpublic void forEachWithOccurrences(ByteIntProcedure procedure)
ByteBagforEachWithOccurrences in interface ByteBagpublic MutableByteBag selectByOccurrences(IntPredicate predicate)
MutableByteBagselectByOccurrences in interface ByteBagselectByOccurrences in interface MutableByteBagpublic MutableByteSet selectUnique()
MutableByteBagselectUnique in interface ByteBagselectUnique in interface MutableByteBagpublic MutableList<ByteIntPair> topOccurrences(int count)
MutableByteBagcount 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 ByteBagtopOccurrences in interface MutableByteBagpublic MutableList<ByteIntPair> bottomOccurrences(int count)
MutableByteBagcount 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 ByteBagbottomOccurrences in interface MutableByteBagpublic MutableByteBag select(BytePredicate predicate)
ByteIterableselect in interface ByteBagselect in interface ByteIterableselect in interface MutableByteBagselect in interface MutableByteCollectionselect in class AbstractUnmodifiableByteCollectionpublic MutableByteBag reject(BytePredicate predicate)
ByteIterablereject in interface ByteBagreject in interface ByteIterablereject in interface MutableByteBagreject in interface MutableByteCollectionreject in class AbstractUnmodifiableByteCollectionpublic <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
ByteIterablecollect in interface ByteBagcollect in interface ByteIterablecollect in interface MutableByteBagcollect in interface MutableByteCollectioncollect in class AbstractUnmodifiableByteCollectionpublic boolean equals(java.lang.Object otherBag)
ByteBagBag.equals(Object).public int hashCode()
ByteBagBag.hashCode().public MutableByteBag asUnmodifiable()
asUnmodifiable in interface MutableByteBagasUnmodifiable in interface MutableByteCollectionasUnmodifiable in class AbstractUnmodifiableByteCollectionpublic MutableByteBag asSynchronized()
asSynchronized in interface MutableByteBagasSynchronized in interface MutableByteCollectionasSynchronized in class AbstractUnmodifiableByteCollectionpublic ImmutableByteBag toImmutable()
MutableByteBagtoImmutable in interface ByteBagtoImmutable in interface MutableByteBagtoImmutable in interface MutableByteCollectiontoImmutable in class AbstractUnmodifiableByteCollectionpublic MutableByteBag newEmpty()
MutableByteBagnewEmpty in interface MutableByteBagnewEmpty in interface MutableByteCollectionCopyright © 2004–2018. All rights reserved.