public final class CharHashSet extends AbstractCharSet implements com.gs.collections.api.set.primitive.MutableCharSet, java.io.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(com.gs.collections.api.CharIterable source) |
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
void |
appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
Prints a string representation of this collection onto the given
Appendable. |
com.gs.collections.api.set.primitive.MutableCharSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableCharSet |
asUnmodifiable() |
com.gs.collections.api.iterator.MutableCharIterator |
charIterator() |
void |
clear() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.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(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
char |
detectIfNone(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone) |
void |
each(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEach(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure) |
com.gs.collections.api.set.primitive.CharSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
<T> T |
injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function) |
char |
max() |
char |
min() |
static CharHashSet |
newSet(com.gs.collections.api.CharIterable source) |
static CharHashSet |
newSetWith(char... source) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
void |
readExternal(java.io.ObjectInput in) |
com.gs.collections.api.set.primitive.MutableCharSet |
reject(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
boolean |
remove(char value) |
boolean |
removeAll(char... source) |
boolean |
removeAll(com.gs.collections.api.CharIterable source) |
boolean |
retainAll(char... source) |
boolean |
retainAll(com.gs.collections.api.CharIterable source) |
CharHashSet |
select(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
char[] |
toArray() |
com.gs.collections.api.set.primitive.ImmutableCharSet |
toImmutable()
Returns an immutable copy of this set.
|
CharHashSet |
with(char element) |
CharHashSet |
withAll(com.gs.collections.api.CharIterable elements) |
CharHashSet |
without(char element) |
CharHashSet |
withoutAll(com.gs.collections.api.CharIterable elements) |
void |
writeExternal(java.io.ObjectOutput out) |
equalsappendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic CharHashSet()
public CharHashSet(int initialCapacity)
public CharHashSet(char... elements)
public CharHashSet(CharHashSet set)
public static CharHashSet newSet(com.gs.collections.api.CharIterable source)
public static CharHashSet newSetWith(char... source)
public int hashCode()
com.gs.collections.api.set.primitive.CharSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.CharSethashCode in class AbstractCharSetpublic int size()
com.gs.collections.api.PrimitiveIterablesize in interface com.gs.collections.api.PrimitiveIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface com.gs.collections.api.PrimitiveIterablepublic boolean add(char element)
add in interface com.gs.collections.api.collection.primitive.MutableCharCollectionpublic boolean addAll(char... source)
addAll in interface com.gs.collections.api.collection.primitive.MutableCharCollectionpublic boolean addAll(com.gs.collections.api.CharIterable source)
addAll in interface com.gs.collections.api.collection.primitive.MutableCharCollectionpublic boolean remove(char value)
remove in interface com.gs.collections.api.collection.primitive.MutableCharCollectionpublic boolean removeAll(com.gs.collections.api.CharIterable source)
removeAll in interface com.gs.collections.api.collection.primitive.MutableCharCollectionpublic boolean removeAll(char... source)
removeAll in interface com.gs.collections.api.collection.primitive.MutableCharCollectionpublic boolean retainAll(com.gs.collections.api.CharIterable source)
retainAll in interface com.gs.collections.api.collection.primitive.MutableCharCollectionCollection.retainAll(Collection)public boolean retainAll(char... source)
retainAll in interface com.gs.collections.api.collection.primitive.MutableCharCollectionCollection.retainAll(Collection)public void clear()
clear in interface com.gs.collections.api.collection.primitive.MutableCharCollectionpublic CharHashSet with(char element)
with in interface com.gs.collections.api.collection.primitive.MutableCharCollectionwith in interface com.gs.collections.api.set.primitive.MutableCharSetpublic CharHashSet without(char element)
without in interface com.gs.collections.api.collection.primitive.MutableCharCollectionwithout in interface com.gs.collections.api.set.primitive.MutableCharSetpublic CharHashSet withAll(com.gs.collections.api.CharIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableCharCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableCharSetpublic CharHashSet withoutAll(com.gs.collections.api.CharIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableCharCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableCharSetpublic com.gs.collections.api.set.primitive.MutableCharSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableCharCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableCharSetpublic com.gs.collections.api.set.primitive.MutableCharSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableCharCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableCharSetpublic com.gs.collections.api.set.primitive.ImmutableCharSet toImmutable()
com.gs.collections.api.set.primitive.MutableCharSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableCharCollectiontoImmutable in interface com.gs.collections.api.set.primitive.CharSettoImmutable in interface com.gs.collections.api.set.primitive.MutableCharSetpublic com.gs.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface com.gs.collections.api.CharIterablecharIterator in interface com.gs.collections.api.collection.primitive.MutableCharCollectionpublic char[] toArray()
toArray in interface com.gs.collections.api.CharIterablepublic boolean contains(char value)
contains in interface com.gs.collections.api.CharIterablepublic void forEach(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
forEach in interface com.gs.collections.api.CharIterablepublic void each(com.gs.collections.api.block.procedure.primitive.CharProcedure procedure)
each in interface com.gs.collections.api.CharIterablepublic CharHashSet select(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
select in interface com.gs.collections.api.CharIterableselect in interface com.gs.collections.api.collection.primitive.MutableCharCollectionselect in interface com.gs.collections.api.set.primitive.CharSetselect in interface com.gs.collections.api.set.primitive.MutableCharSetpublic com.gs.collections.api.set.primitive.MutableCharSet reject(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
reject in interface com.gs.collections.api.CharIterablereject in interface com.gs.collections.api.collection.primitive.MutableCharCollectionreject in interface com.gs.collections.api.set.primitive.CharSetreject in interface com.gs.collections.api.set.primitive.MutableCharSetpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.CharToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.CharIterablecollect in interface com.gs.collections.api.collection.primitive.MutableCharCollectioncollect in interface com.gs.collections.api.set.primitive.CharSetcollect in interface com.gs.collections.api.set.primitive.MutableCharSetpublic char detectIfNone(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate,
char ifNone)
detectIfNone in interface com.gs.collections.api.CharIterablepublic int count(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
count in interface com.gs.collections.api.CharIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
anySatisfy in interface com.gs.collections.api.CharIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
allSatisfy in interface com.gs.collections.api.CharIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.CharPredicate predicate)
noneSatisfy in interface com.gs.collections.api.CharIterablepublic long sum()
sum in interface com.gs.collections.api.CharIterablepublic char max()
max in interface com.gs.collections.api.CharIterablepublic char min()
min in interface com.gs.collections.api.CharIterablepublic com.gs.collections.api.set.primitive.CharSet freeze()
com.gs.collections.api.set.primitive.MutableCharSetfreeze in interface com.gs.collections.api.set.primitive.CharSetfreeze in interface com.gs.collections.api.set.primitive.MutableCharSetpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionpublic <T> T injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super T,? extends T> function)
injectInto in interface com.gs.collections.api.CharIterablepublic void compact()