public final class CharHashSet extends AbstractCharSet implements org.eclipse.collections.api.set.primitive.MutableCharSet, Externalizable
| Constructor and Description |
|---|
CharHashSet() |
CharHashSet(char... elements) |
CharHashSet(CharHashSet set) |
CharHashSet(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(char element) |
boolean |
addAll(char... source) |
boolean |
addAll(org.eclipse.collections.api.CharIterable source) |
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.set.primitive.MutableCharSet |
asSynchronized() |
org.eclipse.collections.api.set.primitive.MutableCharSet |
asUnmodifiable() |
org.eclipse.collections.api.iterator.MutableCharIterator |
charIterator() |
void |
clear() |
<V> org.eclipse.collections.api.set.MutableSet<V> |
collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
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) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
org.eclipse.collections.api.set.primitive.CharSet |
freeze() |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function) |
char |
max() |
char |
min() |
static CharHashSet |
newSet(org.eclipse.collections.api.CharIterable source) |
static CharHashSet |
newSetWith(char... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.set.primitive.MutableCharSet |
reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
remove(char value) |
boolean |
removeAll(char... source) |
boolean |
removeAll(org.eclipse.collections.api.CharIterable source) |
boolean |
retainAll(char... source) |
boolean |
retainAll(org.eclipse.collections.api.CharIterable source) |
CharHashSet |
select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate) |
int |
size() |
long |
sum() |
char[] |
toArray() |
org.eclipse.collections.api.set.primitive.ImmutableCharSet |
toImmutable() |
CharHashSet |
with(char element) |
CharHashSet |
withAll(org.eclipse.collections.api.CharIterable elements) |
CharHashSet |
without(char element) |
CharHashSet |
withoutAll(org.eclipse.collections.api.CharIterable elements) |
void |
writeExternal(ObjectOutput out) |
equalsappendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic CharHashSet()
public CharHashSet(int initialCapacity)
public CharHashSet(char... elements)
public CharHashSet(CharHashSet set)
public static CharHashSet newSet(org.eclipse.collections.api.CharIterable source)
public static CharHashSet newSetWith(char... source)
public int hashCode()
hashCode in interface org.eclipse.collections.api.set.primitive.CharSethashCode in class AbstractCharSetpublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean add(char element)
add 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 remove(char value)
remove 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 removeAll(char... 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 clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic CharHashSet with(char element)
with in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionwith in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic CharHashSet without(char element)
without in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionwithout in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic CharHashSet withAll(org.eclipse.collections.api.CharIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionwithAll in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic CharHashSet withoutAll(org.eclipse.collections.api.CharIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionwithoutAll in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic org.eclipse.collections.api.set.primitive.MutableCharSet asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionasUnmodifiable in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic org.eclipse.collections.api.set.primitive.MutableCharSet asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionasSynchronized in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic org.eclipse.collections.api.set.primitive.ImmutableCharSet toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectiontoImmutable in interface org.eclipse.collections.api.set.primitive.CharSettoImmutable in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic org.eclipse.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface org.eclipse.collections.api.CharIterablecharIterator in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionpublic char[] toArray()
toArray in interface org.eclipse.collections.api.CharIterablepublic boolean contains(char value)
contains in interface org.eclipse.collections.api.CharIterablepublic 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 CharHashSet select(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
select in interface org.eclipse.collections.api.CharIterableselect in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionselect in interface org.eclipse.collections.api.set.primitive.CharSetselect in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic org.eclipse.collections.api.set.primitive.MutableCharSet reject(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate)
reject in interface org.eclipse.collections.api.CharIterablereject in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectionreject in interface org.eclipse.collections.api.set.primitive.CharSetreject in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic <V> org.eclipse.collections.api.set.MutableSet<V> collect(org.eclipse.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.CharIterablecollect in interface org.eclipse.collections.api.collection.primitive.MutableCharCollectioncollect in interface org.eclipse.collections.api.set.primitive.CharSetcollect in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic char detectIfNone(org.eclipse.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone)
detectIfNone in interface org.eclipse.collections.api.CharIterablepublic 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 long sum()
sum in interface org.eclipse.collections.api.CharIterablepublic char max()
max in interface org.eclipse.collections.api.CharIterablepublic char min()
min in interface org.eclipse.collections.api.CharIterablepublic org.eclipse.collections.api.set.primitive.CharSet freeze()
freeze in interface org.eclipse.collections.api.set.primitive.CharSetfreeze in interface org.eclipse.collections.api.set.primitive.MutableCharSetpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic <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 void compact()
Copyright © 2004–2018. All rights reserved.