@NotThreadSafe public final class CharHashBag extends AbstractCharIterable implements org.eclipse.collections.api.bag.primitive.MutableCharBag, Externalizable
HashBag, and is memory-optimized for char primitives.
This file was automatically generated from template file primitiveHashBag.stg.| Constructor and Description |
|---|
CharHashBag() |
CharHashBag(char... elements) |
CharHashBag(CharHashBag bag) |
CharHashBag(org.eclipse.collections.api.CharIterable iterable) |
CharHashBag(int size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(char item) |
boolean |
addAll(char... source) |
boolean |
addAll(org.eclipse.collections.api.CharIterable source) |
void |
addOccurrences(char item,
int occurrences) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.bag.primitive.MutableCharBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableCharBag |
asUnmodifiable() |
org.eclipse.collections.api.iterator.MutableCharIterator |
charIterator() |
void |
clear() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function) |
boolean |
contains(char value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
boolean |
equals(Object otherBag) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.CharIntProcedure procedure) |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
char |
max() |
char |
min() |
static CharHashBag |
newBag(org.eclipse.collections.api.bag.primitive.CharBag source) |
static CharHashBag |
newBag(org.eclipse.collections.api.CharIterable source) |
static CharHashBag |
newBag(int size) |
static CharHashBag |
newBagWith(char... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
notEmpty() |
int |
occurrencesOf(char item) |
void |
readExternal(ObjectInput in) |
CharHashBag |
reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
remove(char item) |
boolean |
removeAll(char... source) |
boolean |
removeAll(org.eclipse.collections.api.CharIterable source) |
boolean |
removeOccurrences(char item,
int occurrences) |
boolean |
retainAll(char... source) |
boolean |
retainAll(org.eclipse.collections.api.CharIterable source) |
CharHashBag |
select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
int |
size() |
int |
sizeDistinct() |
long |
sum() |
char[] |
toArray() |
org.eclipse.collections.api.bag.primitive.ImmutableCharBag |
toImmutable() |
CharHashBag |
with(char element) |
CharHashBag |
with(char element1,
char element2) |
CharHashBag |
with(char element1,
char element2,
char element3) |
CharHashBag |
withAll(org.eclipse.collections.api.CharIterable iterable) |
CharHashBag |
without(char element) |
CharHashBag |
withoutAll(org.eclipse.collections.api.CharIterable iterable) |
void |
writeExternal(ObjectOutput out) |
appendString, appendString, asLazy, average, containsAll, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic CharHashBag()
public CharHashBag(int size)
public CharHashBag(org.eclipse.collections.api.CharIterable iterable)
public CharHashBag(char... elements)
public CharHashBag(CharHashBag bag)
public static CharHashBag newBag(int size)
public static CharHashBag newBagWith(char... source)
public static CharHashBag newBag(org.eclipse.collections.api.CharIterable source)
public static CharHashBag newBag(org.eclipse.collections.api.bag.primitive.CharBag source)
public boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterableisEmpty in class AbstractCharIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablenotEmpty in class AbstractCharIterablepublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.CharBagpublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic CharHashBag with(char element)
with in interface org.eclipse.collections.api.bag.primitive.MutableCharBagwith in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic CharHashBag with(char element1, char element2)
public CharHashBag with(char element1, char element2, char element3)
public CharHashBag withAll(org.eclipse.collections.api.CharIterable iterable)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableCharBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic CharHashBag without(char element)
without in interface org.eclipse.collections.api.bag.primitive.MutableCharBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic CharHashBag withoutAll(org.eclipse.collections.api.CharIterable iterable)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableCharBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean contains(char value)
contains in interface org.eclipse.collections.api.CharIterablepublic int occurrencesOf(char item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.CharBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.CharIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.CharBagpublic boolean add(char item)
add in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean remove(char item)
remove in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean addAll(char... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean addAll(org.eclipse.collections.api.CharIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean removeAll(char... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean removeAll(org.eclipse.collections.api.CharIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean retainAll(org.eclipse.collections.api.CharIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic boolean retainAll(char... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic void addOccurrences(char item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableCharBagpublic boolean removeOccurrences(char item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableCharBagpublic void forEach(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEach in interface org.eclipse.collections.api.CharIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
each in interface org.eclipse.collections.api.CharIterablepublic CharHashBag select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.CharBagselect in interface org.eclipse.collections.api.bag.primitive.MutableCharBagselect in interface org.eclipse.collections.api.CharIterableselect in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic CharHashBag reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.CharBagreject in interface org.eclipse.collections.api.bag.primitive.MutableCharBagreject in interface org.eclipse.collections.api.CharIterablereject in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.CharIterablepublic boolean equals(Object otherBag)
public int hashCode()
public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
count in interface org.eclipse.collections.api.CharIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.CharIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.CharIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.CharIterablepublic char detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone)
detectIfNone in interface org.eclipse.collections.api.CharIterablepublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.CharBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableCharBagcollect in interface org.eclipse.collections.api.CharIterablecollect in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic char max()
max in interface org.eclipse.collections.api.CharIterablepublic char min()
min in interface org.eclipse.collections.api.CharIterablepublic long sum()
sum in interface org.eclipse.collections.api.CharIterablepublic char[] toArray()
toArray in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.bag.primitive.MutableCharBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableCharBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic org.eclipse.collections.api.bag.primitive.MutableCharBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableCharBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableCharBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.CharBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableCharBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic org.eclipse.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface org.eclipse.collections.api.CharIterablecharIterator in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2018. All rights reserved.