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
public class CharHashSet extends AbstractCharSet implements MutableCharSet, Externalizable
This file was automatically generated from template file primitiveHashSet.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CharHashSet()CharHashSet(char... elements)CharHashSet(int initialCapacity)CharHashSet(CharIterable elements)CharHashSet(CharHashSet set)
-
Method Summary
-
Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractCharSet
cartesianProduct, equals
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractCharIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.CharSet
cartesianProduct, equals, isProperSubsetOf, isSubsetOf, tap
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableCharCollection
removeIf
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableCharSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, toString
-
-
-
-
Constructor Detail
-
CharHashSet
public CharHashSet()
-
CharHashSet
public CharHashSet(int initialCapacity)
-
CharHashSet
public CharHashSet(char... elements)
-
CharHashSet
public CharHashSet(CharIterable elements)
-
CharHashSet
public CharHashSet(CharHashSet set)
-
-
Method Detail
-
boxed
public MutableSet<Character> boxed()
- Specified by:
boxedin interfaceMutableCharSet
-
newSet
public static CharHashSet newSet(CharIterable source)
-
newSetWith
public static CharHashSet newSetWith(char... source)
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceCharSet- Specified by:
hashCodein classAbstractCharSet
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- 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
public boolean addAll(CharIterable source)
- Specified by:
addAllin interfaceMutableCharCollection
-
remove
public boolean remove(char value)
- Specified by:
removein interfaceMutableCharCollection
-
removeAll
public boolean removeAll(CharIterable source)
- Specified by:
removeAllin interfaceMutableCharCollection
-
removeAll
public boolean removeAll(char... source)
- Specified by:
removeAllin interfaceMutableCharCollection
-
retainAll
public boolean retainAll(CharIterable source)
- Specified by:
retainAllin interfaceMutableCharCollection
-
retainAll
public boolean retainAll(char... source)
- Specified by:
retainAllin interfaceMutableCharCollection
-
clear
public void clear()
- Specified by:
clearin interfaceMutableCharCollection
-
with
public CharHashSet with(char element)
- Specified by:
within interfaceMutableCharCollection- Specified by:
within interfaceMutableCharSet
-
without
public CharHashSet without(char element)
- Specified by:
withoutin interfaceMutableCharCollection- Specified by:
withoutin interfaceMutableCharSet
-
withAll
public CharHashSet withAll(CharIterable elements)
- Specified by:
withAllin interfaceMutableCharCollection- Specified by:
withAllin interfaceMutableCharSet
-
withoutAll
public CharHashSet withoutAll(CharIterable elements)
- Specified by:
withoutAllin interfaceMutableCharCollection- Specified by:
withoutAllin interfaceMutableCharSet
-
asUnmodifiable
public MutableCharSet asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableCharCollection- Specified by:
asUnmodifiablein interfaceMutableCharSet
-
asSynchronized
public MutableCharSet asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableCharCollection- Specified by:
asSynchronizedin interfaceMutableCharSet
-
toImmutable
public ImmutableCharSet toImmutable()
- Specified by:
toImmutablein interfaceCharSet- Specified by:
toImmutablein interfaceMutableCharCollection- Specified by:
toImmutablein interfaceMutableCharSet
-
charIterator
public MutableCharIterator 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
public void each(CharProcedure procedure)
- Specified by:
eachin interfaceCharIterable- Since:
- 7.0.
-
select
public CharHashSet select(CharPredicate predicate)
- Specified by:
selectin interfaceCharIterable- Specified by:
selectin interfaceCharSet- Specified by:
selectin interfaceMutableCharCollection- Specified by:
selectin interfaceMutableCharSet
-
select
public <R extends MutableCharCollection> R select(CharPredicate predicate, R target)
- Specified by:
selectin interfaceCharIterable- Since:
- 8.1.
-
reject
public CharHashSet reject(CharPredicate predicate)
- Specified by:
rejectin interfaceCharIterable- Specified by:
rejectin interfaceCharSet- Specified by:
rejectin interfaceMutableCharCollection- Specified by:
rejectin interfaceMutableCharSet
-
reject
public <R extends MutableCharCollection> R reject(CharPredicate predicate, R target)
- Specified by:
rejectin interfaceCharIterable- Since:
- 8.1.
-
collect
public <V> MutableSet<V> collect(CharToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceCharIterable- Specified by:
collectin interfaceCharSet- Specified by:
collectin interfaceMutableCharCollection- Specified by:
collectin interfaceMutableCharSet
-
collect
public <V,R extends Collection<V>> R collect(CharToObjectFunction<? extends V> function, R target)
- Specified by:
collectin interfaceCharIterable- Since:
- 8.1.
-
detectIfNone
public char detectIfNone(CharPredicate predicate, char ifNone)
- Specified by:
detectIfNonein interfaceCharIterable
-
count
public int count(CharPredicate predicate)
- Specified by:
countin interfaceCharIterable
-
anySatisfy
public boolean anySatisfy(CharPredicate predicate)
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
public boolean allSatisfy(CharPredicate predicate)
- 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
public CharSet freeze()
- Specified by:
freezein interfaceCharSet- Specified by:
freezein interfaceMutableCharSet
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
injectInto
public <T> T injectInto(T injectedValue, ObjectCharToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceCharIterable
-
chunk
public RichIterable<CharIterable> chunk(int size)
- Specified by:
chunkin interfaceCharIterable
-
newEmpty
public CharHashSet 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 public void 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.
-
-