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.CharSetfreeze()Returns a frozen copy of this set.ImmutableCharSetnewWith(char element)ImmutableCharSetnewWithAll(CharIterable elements)ImmutableCharSetnewWithout(char element)ImmutableCharSetnewWithoutAll(CharIterable elements)ImmutableCharSettoImmutable()Returns an immutable copy of this set.Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractCharSet
equals, hashCodeMethods inherited from class org.eclipse.collections.impl.primitive.AbstractCharIterable
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods 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, toSortedListMethods inherited from interface org.eclipse.collections.api.set.primitive.CharSet
collect, equals, hashCode, reject, select, tapMethods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableCharSet
collect, reject, select, tapMethods 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:
newWithin interfaceImmutableCharCollection- Specified by:
newWithin interfaceImmutableCharSet
-
newWithout
- Specified by:
newWithoutin interfaceImmutableCharCollection- Specified by:
newWithoutin interfaceImmutableCharSet
-
newWithAll
- Specified by:
newWithAllin interfaceImmutableCharCollection- Specified by:
newWithAllin interfaceImmutableCharSet
-
newWithoutAll
- Specified by:
newWithoutAllin interfaceImmutableCharCollection- Specified by:
newWithoutAllin interfaceImmutableCharSet
-
freeze
Description copied from interface:CharSetReturns 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:CharSetReturns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutablein interfaceCharSet
-
chunk
Description copied from interface:CharIterablePartitions elements in fixed size chunks.- Specified by:
chunkin interfaceCharIterable- Parameters:
size- the number of elements per chunk- Returns:
- A
RichIterablecontainingCharIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
-