public class SynchronizedCharBag extends AbstractSynchronizedCharCollection implements MutableCharBag
MutableCharBag. It is imperative that the user manually synchronize on the collection when iterating over it using the
CharIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveBag.stg.
MutableCharBag.asSynchronized(),
MutableBag.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedCharBag(MutableCharBag bag) |
SynchronizedCharBag(MutableCharBag bag,
Object newLock) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, charIterator, 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, charIterator, 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 SynchronizedCharBag(MutableCharBag bag)
public SynchronizedCharBag(MutableCharBag bag, Object newLock)
public SynchronizedCharBag with(char element)
with in interface MutableCharBagwith in interface MutableCharCollectionwith in class AbstractSynchronizedCharCollectionpublic SynchronizedCharBag without(char element)
without in interface MutableCharBagwithout in interface MutableCharCollectionwithout in class AbstractSynchronizedCharCollectionpublic SynchronizedCharBag withAll(CharIterable elements)
withAll in interface MutableCharBagwithAll in interface MutableCharCollectionwithAll in class AbstractSynchronizedCharCollectionpublic SynchronizedCharBag withoutAll(CharIterable elements)
withoutAll in interface MutableCharBagwithoutAll in interface MutableCharCollectionwithoutAll in class AbstractSynchronizedCharCollectionpublic void addOccurrences(char item,
int occurrences)
addOccurrences in interface MutableCharBagpublic boolean removeOccurrences(char item,
int occurrences)
removeOccurrences in interface MutableCharBagpublic int sizeDistinct()
sizeDistinct in interface CharBagpublic int occurrencesOf(char item)
occurrencesOf in interface CharBagpublic void forEachWithOccurrences(CharIntProcedure procedure)
forEachWithOccurrences in interface CharBagpublic MutableCharBag select(CharPredicate predicate)
select in interface CharBagselect in interface MutableCharBagselect in interface CharIterableselect in interface MutableCharCollectionselect in class AbstractSynchronizedCharCollectionpublic MutableCharBag selectByOccurrences(IntPredicate predicate)
selectByOccurrences in interface CharBagselectByOccurrences in interface MutableCharBagpublic MutableCharSet selectUnique()
selectUnique in interface CharBagselectUnique in interface MutableCharBagpublic MutableList<CharIntPair> topOccurrences(int count)
topOccurrences in interface CharBagtopOccurrences in interface MutableCharBagpublic MutableList<CharIntPair> bottomOccurrences(int count)
bottomOccurrences in interface CharBagbottomOccurrences in interface MutableCharBagpublic MutableCharBag reject(CharPredicate predicate)
reject in interface CharBagreject in interface MutableCharBagreject in interface CharIterablereject in interface MutableCharCollectionreject in class AbstractSynchronizedCharCollectionpublic <V> MutableBag<V> collect(CharToObjectFunction<? extends V> function)
collect in interface CharBagcollect in interface MutableCharBagcollect in interface CharIterablecollect in interface MutableCharCollectioncollect in class AbstractSynchronizedCharCollectionpublic boolean equals(Object otherBag)
public int hashCode()
public LazyCharIterable asLazy()
asLazy in interface CharIterableasLazy in class AbstractSynchronizedCharCollectionpublic MutableCharBag asUnmodifiable()
asUnmodifiable in interface MutableCharBagasUnmodifiable in interface MutableCharCollectionasUnmodifiable in class AbstractSynchronizedCharCollectionpublic MutableCharBag asSynchronized()
asSynchronized in interface MutableCharBagasSynchronized in interface MutableCharCollectionasSynchronized in class AbstractSynchronizedCharCollectionpublic ImmutableCharBag toImmutable()
toImmutable in interface CharBagtoImmutable in interface MutableCharBagtoImmutable in interface MutableCharCollectiontoImmutable in class AbstractSynchronizedCharCollectionpublic MutableCharBag newEmpty()
newEmpty in interface MutableCharBagnewEmpty in interface MutableCharCollectionCopyright © 2004–2022. All rights reserved.