Class AbstractImmutableCharSet
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractCharIterable
org.eclipse.collections.impl.set.primitive.AbstractCharSet
org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableCharSet
- All Implemented Interfaces:
CharIterable
,ImmutableCharCollection
,PrimitiveIterable
,CharSet
,ImmutableCharSet
public abstract class AbstractImmutableCharSet extends AbstractCharSet implements ImmutableCharSet
This file was automatically generated from template file abstractImmutablePrimitiveSet.stg.
- Since:
- 6.0.
-
Constructor Summary
Constructors Constructor Description AbstractImmutableCharSet()
-
Method Summary
Modifier and Type Method Description RichIterable<CharIterable>
chunk(int size)
Partitions elements in fixed size chunks.CharSet
freeze()
Returns a frozen copy of this set.ImmutableCharSet
newWith(char element)
ImmutableCharSet
newWithAll(CharIterable elements)
ImmutableCharSet
newWithout(char element)
ImmutableCharSet
newWithoutAll(CharIterable elements)
ImmutableCharSet
toImmutable()
Returns an immutable copy of this set.Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractCharSet
equals, hashCode
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractCharIterable
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
Methods inherited from interface org.eclipse.collections.api.CharIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, charIterator, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList
Methods inherited from interface org.eclipse.collections.api.set.primitive.CharSet
collect, equals, hashCode, reject, select, tap
Methods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableCharSet
collect, reject, select, tap
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
AbstractImmutableCharSet
public AbstractImmutableCharSet()
-
-
Method Details
-
newWith
- Specified by:
newWith
in interfaceImmutableCharCollection
- Specified by:
newWith
in interfaceImmutableCharSet
-
newWithout
- Specified by:
newWithout
in interfaceImmutableCharCollection
- Specified by:
newWithout
in interfaceImmutableCharSet
-
newWithAll
- Specified by:
newWithAll
in interfaceImmutableCharCollection
- Specified by:
newWithAll
in interfaceImmutableCharSet
-
newWithoutAll
- Specified by:
newWithoutAll
in interfaceImmutableCharCollection
- Specified by:
newWithoutAll
in interfaceImmutableCharSet
-
freeze
Description copied from interface:CharSet
Returns a frozen copy of this set. If the set is frozen, it returns itself. A frozen copy is the same thing as an immutable copy without safe-publish guarantees. -
toImmutable
Description copied from interface:CharSet
Returns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutable
in interfaceCharSet
-
chunk
Description copied from interface:CharIterable
Partitions elements in fixed size chunks.- Specified by:
chunk
in interfaceCharIterable
- Parameters:
size
- the number of elements per chunk- Returns:
- A
RichIterable
containingCharIterable
s of sizesize
, except the last will be truncated if the elements don't divide evenly.
-