@ThreadSafe public final class SynchronizedByteBag extends AbstractSynchronizedByteCollection implements org.eclipse.collections.api.bag.primitive.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| Modifier and Type | Method and Description |
|---|---|
void |
addOccurrences(byte item,
int occurrences) |
org.eclipse.collections.api.LazyByteIterable |
asLazy() |
org.eclipse.collections.api.bag.primitive.MutableByteBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableByteBag |
asUnmodifiable() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function) |
boolean |
equals(Object otherBag) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ByteIntProcedure procedure) |
int |
hashCode() |
int |
occurrencesOf(byte item) |
org.eclipse.collections.api.bag.primitive.MutableByteBag |
reject(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
boolean |
removeOccurrences(byte item,
int occurrences) |
org.eclipse.collections.api.bag.primitive.MutableByteBag |
select(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate) |
int |
sizeDistinct() |
org.eclipse.collections.api.bag.primitive.ImmutableByteBag |
toImmutable() |
SynchronizedByteBag |
with(byte element) |
SynchronizedByteBag |
withAll(org.eclipse.collections.api.ByteIterable elements) |
SynchronizedByteBag |
without(byte element) |
SynchronizedByteBag |
withoutAll(org.eclipse.collections.api.ByteIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, byteIterator, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringadd, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic SynchronizedByteBag with(byte element)
with in interface org.eclipse.collections.api.bag.primitive.MutableByteBagwith in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionwith in class AbstractSynchronizedByteCollectionpublic SynchronizedByteBag without(byte element)
without in interface org.eclipse.collections.api.bag.primitive.MutableByteBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionwithout in class AbstractSynchronizedByteCollectionpublic SynchronizedByteBag withAll(org.eclipse.collections.api.ByteIterable elements)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableByteBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionwithAll in class AbstractSynchronizedByteCollectionpublic SynchronizedByteBag withoutAll(org.eclipse.collections.api.ByteIterable elements)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableByteBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionwithoutAll in class AbstractSynchronizedByteCollectionpublic void addOccurrences(byte item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableByteBagpublic boolean removeOccurrences(byte item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableByteBagpublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.ByteBagpublic int occurrencesOf(byte item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.ByteBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ByteIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.ByteBagpublic org.eclipse.collections.api.bag.primitive.MutableByteBag select(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.ByteBagselect in interface org.eclipse.collections.api.bag.primitive.MutableByteBagselect in interface org.eclipse.collections.api.ByteIterableselect in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionselect in class AbstractSynchronizedByteCollectionpublic org.eclipse.collections.api.bag.primitive.MutableByteBag reject(org.eclipse.collections.api.block.predicate.primitive.BytePredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.ByteBagreject in interface org.eclipse.collections.api.bag.primitive.MutableByteBagreject in interface org.eclipse.collections.api.ByteIterablereject in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionreject in class AbstractSynchronizedByteCollectionpublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.ByteBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableByteBagcollect in interface org.eclipse.collections.api.ByteIterablecollect in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectioncollect in class AbstractSynchronizedByteCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public org.eclipse.collections.api.LazyByteIterable asLazy()
asLazy in interface org.eclipse.collections.api.ByteIterableasLazy in class AbstractSynchronizedByteCollectionpublic org.eclipse.collections.api.bag.primitive.MutableByteBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableByteBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionasUnmodifiable in class AbstractSynchronizedByteCollectionpublic org.eclipse.collections.api.bag.primitive.MutableByteBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableByteBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectionasSynchronized in class AbstractSynchronizedByteCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableByteBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.ByteBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableByteBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableByteCollectiontoImmutable in class AbstractSynchronizedByteCollectionCopyright © 2004–2018. All rights reserved.