public class SynchronizedByteBag extends AbstractSynchronizedByteCollection implements MutableByteBag
MutableByteBag. It is imperative that the user manually synchronize on the collection when iterating over it using the
ByteIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveBag.stg.
MutableByteBag.asSynchronized(),
MutableBag.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedByteBag(MutableByteBag bag) |
SynchronizedByteBag(MutableByteBag bag,
Object newLock) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, 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, 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 SynchronizedByteBag(MutableByteBag bag)
public SynchronizedByteBag(MutableByteBag bag, Object newLock)
public SynchronizedByteBag with(byte element)
with in interface MutableByteBagwith in interface MutableByteCollectionwith in class AbstractSynchronizedByteCollectionpublic SynchronizedByteBag without(byte element)
without in interface MutableByteBagwithout in interface MutableByteCollectionwithout in class AbstractSynchronizedByteCollectionpublic SynchronizedByteBag withAll(ByteIterable elements)
withAll in interface MutableByteBagwithAll in interface MutableByteCollectionwithAll in class AbstractSynchronizedByteCollectionpublic SynchronizedByteBag withoutAll(ByteIterable elements)
withoutAll in interface MutableByteBagwithoutAll in interface MutableByteCollectionwithoutAll in class AbstractSynchronizedByteCollectionpublic 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 select(BytePredicate predicate)
select in interface ByteBagselect in interface MutableByteBagselect in interface ByteIterableselect in interface MutableByteCollectionselect in class AbstractSynchronizedByteCollectionpublic 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 reject(BytePredicate predicate)
reject in interface ByteBagreject in interface MutableByteBagreject in interface ByteIterablereject in interface MutableByteCollectionreject in class AbstractSynchronizedByteCollectionpublic <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
collect in interface ByteBagcollect in interface MutableByteBagcollect in interface ByteIterablecollect in interface MutableByteCollectioncollect in class AbstractSynchronizedByteCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public LazyByteIterable asLazy()
asLazy in interface ByteIterableasLazy in class AbstractSynchronizedByteCollectionpublic MutableByteBag asUnmodifiable()
asUnmodifiable in interface MutableByteBagasUnmodifiable in interface MutableByteCollectionasUnmodifiable in class AbstractSynchronizedByteCollectionpublic MutableByteBag asSynchronized()
asSynchronized in interface MutableByteBagasSynchronized in interface MutableByteCollectionasSynchronized in class AbstractSynchronizedByteCollectionpublic ImmutableByteBag toImmutable()
toImmutable in interface ByteBagtoImmutable in interface MutableByteBagtoImmutable in interface MutableByteCollectiontoImmutable in class AbstractSynchronizedByteCollectionpublic MutableByteBag newEmpty()
newEmpty in interface MutableByteBagnewEmpty in interface MutableByteCollectionCopyright © 2004–2022. All rights reserved.