Class UnmodifiableCharBag
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection
org.eclipse.collections.impl.bag.mutable.primitive.UnmodifiableCharBag
- All Implemented Interfaces:
Serializable,CharBag,MutableCharBag,CharIterable,MutableCharCollection,PrimitiveIterable
public class UnmodifiableCharBag
extends AbstractUnmodifiableCharCollection
implements MutableCharBag
This file was automatically generated from template file unmodifiablePrimitiveBag.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOccurrences(char item, int occurrences) bottomOccurrences(int count) <V> MutableBag<V>collect(CharToObjectFunction<? extends V> function) booleanvoidforEachWithOccurrences(CharIntProcedure procedure) inthashCode()newEmpty()intoccurrencesOf(char item) reject(CharPredicate predicate) booleanremoveOccurrences(char item, int occurrences) select(CharPredicate predicate) selectByOccurrences(IntPredicate predicate) inttopOccurrences(int count) with(char element) withAll(CharIterable elements) without(char element) withoutAll(CharIterable elements) Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableCharCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, 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, toStringMethods inherited from interface org.eclipse.collections.api.bag.primitive.CharBag
toStringOfItemToCountMethods inherited from interface org.eclipse.collections.api.CharIterable
allSatisfy, 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, toSortedListByMethods inherited from interface org.eclipse.collections.api.bag.primitive.MutableCharBag
selectDuplicates, tapMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableCharCollection
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
UnmodifiableCharBag
-
-
Method Details
-
with
- Specified by:
within interfaceMutableCharBag- Specified by:
within interfaceMutableCharCollection- Overrides:
within classAbstractUnmodifiableCharCollection
-
without
- Specified by:
withoutin interfaceMutableCharBag- Specified by:
withoutin interfaceMutableCharCollection- Overrides:
withoutin classAbstractUnmodifiableCharCollection
-
withAll
- Specified by:
withAllin interfaceMutableCharBag- Specified by:
withAllin interfaceMutableCharCollection- Overrides:
withAllin classAbstractUnmodifiableCharCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableCharBag- Specified by:
withoutAllin interfaceMutableCharCollection- Overrides:
withoutAllin classAbstractUnmodifiableCharCollection
-
addOccurrences
public void addOccurrences(char item, int occurrences) - Specified by:
addOccurrencesin interfaceMutableCharBag
-
removeOccurrences
public boolean removeOccurrences(char item, int occurrences) - Specified by:
removeOccurrencesin interfaceMutableCharBag
-
sizeDistinct
public int sizeDistinct()- Specified by:
sizeDistinctin interfaceCharBag
-
occurrencesOf
public int occurrencesOf(char item) - Specified by:
occurrencesOfin interfaceCharBag
-
forEachWithOccurrences
- Specified by:
forEachWithOccurrencesin interfaceCharBag
-
selectByOccurrences
- Specified by:
selectByOccurrencesin interfaceCharBag- Specified by:
selectByOccurrencesin interfaceMutableCharBag
-
selectUnique
- Specified by:
selectUniquein interfaceCharBag- Specified by:
selectUniquein interfaceMutableCharBag
-
topOccurrences
- Specified by:
topOccurrencesin interfaceCharBag- Specified by:
topOccurrencesin interfaceMutableCharBag
-
bottomOccurrences
- Specified by:
bottomOccurrencesin interfaceCharBag- Specified by:
bottomOccurrencesin interfaceMutableCharBag
-
select
- Specified by:
selectin interfaceCharBag- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceMutableCharBag- Specified by:
selectin interfaceMutableCharCollection- Overrides:
selectin classAbstractUnmodifiableCharCollection
-
reject
- Specified by:
rejectin interfaceCharBag- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceMutableCharBag- Specified by:
rejectin interfaceMutableCharCollection- Overrides:
rejectin classAbstractUnmodifiableCharCollection
-
collect
- Specified by:
collectin interfaceCharBag- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceMutableCharBag- Specified by:
collectin interfaceMutableCharCollection- Overrides:
collectin classAbstractUnmodifiableCharCollection
-
equals
-
hashCode
public int hashCode() -
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharBag- Specified by:
asUnmodifiablein interfaceMutableCharCollection- Overrides:
asUnmodifiablein classAbstractUnmodifiableCharCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharBag- Specified by:
asSynchronizedin interfaceMutableCharCollection- Overrides:
asSynchronizedin classAbstractUnmodifiableCharCollection
-
toImmutable
- Specified by:
toImmutablein interfaceCharBag- Specified by:
toImmutablein interfaceMutableCharBag- Specified by:
toImmutablein interfaceMutableCharCollection- Overrides:
toImmutablein classAbstractUnmodifiableCharCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableCharBag- Specified by:
newEmptyin interfaceMutableCharCollection- Since:
- 9.2.
-