public class UnmodifiableByteBag extends AbstractUnmodifiableByteCollection implements MutableByteBag
| Constructor and Description |
|---|
UnmodifiableByteBag(MutableByteBag bag) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, byteIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringselectDuplicates, tapadd, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAlltoStringOfItemToCountallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByappendString, 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()
sizeDistinct in interface ByteBagpublic int occurrencesOf(byte item)
occurrencesOf in interface ByteBagpublic void forEachWithOccurrences(ByteIntProcedure procedure)
forEachWithOccurrences in interface ByteBagpublic MutableByteBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface ByteBagselectByOccurrences in interface MutableByteBagpublic MutableByteSet selectUnique()
selectUnique in interface ByteBagselectUnique in interface MutableByteBagpublic MutableList<ByteIntPair> topOccurrences(int count)
topOccurrences in interface ByteBagtopOccurrences in interface MutableByteBagpublic MutableList<ByteIntPair> bottomOccurrences(int count)
bottomOccurrences in interface ByteBagbottomOccurrences in interface MutableByteBagpublic MutableByteBag select(BytePredicate predicate)
select in interface ByteBagselect in interface MutableByteBagselect in interface ByteIterableselect in interface MutableByteCollectionselect in class AbstractUnmodifiableByteCollectionpublic MutableByteBag reject(BytePredicate predicate)
reject in interface ByteBagreject in interface MutableByteBagreject in interface ByteIterablereject in interface MutableByteCollectionreject in class AbstractUnmodifiableByteCollectionpublic <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
collect in interface ByteBagcollect in interface MutableByteBagcollect in interface ByteIterablecollect in interface MutableByteCollectioncollect in class AbstractUnmodifiableByteCollectionpublic boolean equals(Object otherBag)
public int 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()
toImmutable in interface ByteBagtoImmutable in interface MutableByteBagtoImmutable in interface MutableByteCollectiontoImmutable in class AbstractUnmodifiableByteCollectionpublic MutableByteBag newEmpty()
newEmpty in interface MutableByteBagnewEmpty in interface MutableByteCollectionCopyright © 2004–2022. All rights reserved.