Class CharHashSet
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractCharIterable
org.eclipse.collections.impl.set.primitive.AbstractCharSet
org.eclipse.collections.impl.set.mutable.primitive.CharHashSet
- All Implemented Interfaces:
Externalizable,Serializable,CharIterable,MutableCharCollection,PrimitiveIterable,CharSet,MutableCharSet
This file was automatically generated from template file primitiveHashSet.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCharHashSet(char... elements) CharHashSet(int initialCapacity) CharHashSet(CharIterable elements) CharHashSet(CharHashSet set) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(char element) booleanaddAll(char... source) booleanaddAll(CharIterable source) booleanallSatisfy(CharPredicate predicate) booleananySatisfy(CharPredicate predicate) voidappendString(Appendable appendable, String start, String separator, String end) boxed()chunk(int size) voidclear()<V> MutableSet<V>collect(CharToObjectFunction<? extends V> function) <V,R extends Collection<V>>
Rcollect(CharToObjectFunction<? extends V> function, R target) voidcompact()Deprecated.booleancontains(char value) intcount(CharPredicate predicate) chardetectIfNone(CharPredicate predicate, char ifNone) voideach(CharProcedure procedure) freeze()inthashCode()<T> TinjectInto(T injectedValue, ObjectCharToObjectFunction<? super T, ? extends T> function) charmax()charmin()newEmpty()Creates a new empty CharHashSet.static CharHashSetnewSet(CharIterable source) static CharHashSetnewSetWith(char... source) voidreject(CharPredicate predicate) <R extends MutableCharCollection>
Rreject(CharPredicate predicate, R target) booleanremove(char value) booleanremoveAll(char... source) booleanremoveAll(CharIterable source) booleanretainAll(char... source) booleanretainAll(CharIterable source) select(CharPredicate predicate) <R extends MutableCharCollection>
Rselect(CharPredicate predicate, R target) intsize()longsum()char[]toArray()char[]toArray(char[] array) booleanwith(char element) withAll(CharIterable elements) without(char element) withoutAll(CharIterable elements) voidMethods inherited from class org.eclipse.collections.impl.set.primitive.AbstractCharSet
cartesianProduct, equalsMethods inherited from class org.eclipse.collections.impl.primitive.AbstractCharIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.CharIterable
asLazy, average, averageIfEmpty, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, maxIfEmpty, median, medianIfEmpty, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.set.primitive.CharSet
cartesianProduct, equals, isProperSubsetOf, isSubsetOf, tapMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableCharCollection
removeIfMethods inherited from interface org.eclipse.collections.api.set.primitive.MutableCharSet
difference, intersect, symmetricDifference, tap, unionMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, toString
-
Constructor Details
-
CharHashSet
public CharHashSet() -
CharHashSet
public CharHashSet(int initialCapacity) -
CharHashSet
public CharHashSet(char... elements) -
CharHashSet
-
CharHashSet
-
-
Method Details
-
boxed
- Specified by:
boxedin interfaceMutableCharSet
-
newSet
-
newSetWith
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCharSet- Specified by:
hashCodein classAbstractCharSet
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
add
public boolean add(char element) - Specified by:
addin interfaceMutableCharCollection
-
addAll
public boolean addAll(char... source) - Specified by:
addAllin interfaceMutableCharCollection
-
addAll
- Specified by:
addAllin interfaceMutableCharCollection
-
remove
public boolean remove(char value) - Specified by:
removein interfaceMutableCharCollection
-
removeAll
- Specified by:
removeAllin interfaceMutableCharCollection
-
removeAll
public boolean removeAll(char... source) - Specified by:
removeAllin interfaceMutableCharCollection
-
retainAll
- Specified by:
retainAllin interfaceMutableCharCollection
-
retainAll
public boolean retainAll(char... source) - Specified by:
retainAllin interfaceMutableCharCollection
-
clear
public void clear()- Specified by:
clearin interfaceMutableCharCollection
-
with
- Specified by:
within interfaceMutableCharCollection- Specified by:
within interfaceMutableCharSet
-
without
- Specified by:
withoutin interfaceMutableCharCollection- Specified by:
withoutin interfaceMutableCharSet
-
withAll
- Specified by:
withAllin interfaceMutableCharCollection- Specified by:
withAllin interfaceMutableCharSet
-
withoutAll
- Specified by:
withoutAllin interfaceMutableCharCollection- Specified by:
withoutAllin interfaceMutableCharSet
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableCharCollection- Specified by:
asUnmodifiablein interfaceMutableCharSet
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableCharCollection- Specified by:
asSynchronizedin interfaceMutableCharSet
-
toImmutable
- Specified by:
toImmutablein interfaceCharSet- Specified by:
toImmutablein interfaceMutableCharCollection- Specified by:
toImmutablein interfaceMutableCharSet
-
charIterator
- Specified by:
charIteratorin interfaceCharIterable- Specified by:
charIteratorin interfaceMutableCharCollection
-
toArray
public char[] toArray()- Specified by:
toArrayin interfaceCharIterable
-
toArray
public char[] toArray(char[] array) - Specified by:
toArrayin interfaceCharIterable
-
contains
public boolean contains(char value) - Specified by:
containsin interfaceCharIterable
-
each
- Specified by:
eachin interfaceCharIterable- Since:
- 7.0.
-
select
- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceCharSet- Specified by:
selectin interfaceMutableCharCollection- Specified by:
selectin interfaceMutableCharSet
-
select
- Specified by:
selectin interfaceCharIterable- Since:
- 8.1.
-
reject
- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceCharSet- Specified by:
rejectin interfaceMutableCharCollection- Specified by:
rejectin interfaceMutableCharSet
-
reject
- Specified by:
rejectin interfaceCharIterable- Since:
- 8.1.
-
collect
- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceCharSet- Specified by:
collectin interfaceMutableCharCollection- Specified by:
collectin interfaceMutableCharSet
-
collect
- Specified by:
collectin interfaceCharIterable- Since:
- 8.1.
-
detectIfNone
- Specified by:
detectIfNonein interfaceCharIterable
-
count
- Specified by:
countin interfaceCharIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceCharIterable
-
sum
public long sum()- Specified by:
sumin interfaceCharIterable
-
max
public char max()- Specified by:
maxin interfaceCharIterable
-
min
public char min()- Specified by:
minin interfaceCharIterable
-
freeze
- Specified by:
freezein interfaceCharSet- Specified by:
freezein interfaceMutableCharSet
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
injectInto
public <T> T injectInto(T injectedValue, ObjectCharToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceCharIterable
-
chunk
- Specified by:
chunkin interfaceCharIterable
-
newEmpty
Creates a new empty CharHashSet.- Specified by:
newEmptyin interfaceMutableCharCollection- Specified by:
newEmptyin interfaceMutableCharSet- Since:
- 9.2.
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
compact
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
-
trimToSize()instead