CharIterable
, ImmutableCharCollection
, PrimitiveIterable
, CharSet
, ImmutableCharSet
public abstract class AbstractImmutableCharSet extends AbstractCharSet implements ImmutableCharSet
Constructor | Description |
---|---|
AbstractImmutableCharSet() |
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.
|
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
equals, hashCode
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, toBag, toList, toSet, toSortedArray, toSortedList
collect, reject, select, tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public ImmutableCharSet newWith(char element)
newWith
in interface ImmutableCharCollection
newWith
in interface ImmutableCharSet
public ImmutableCharSet newWithout(char element)
newWithout
in interface ImmutableCharCollection
newWithout
in interface ImmutableCharSet
public ImmutableCharSet newWithAll(CharIterable elements)
newWithAll
in interface ImmutableCharCollection
newWithAll
in interface ImmutableCharSet
public ImmutableCharSet newWithoutAll(CharIterable elements)
newWithoutAll
in interface ImmutableCharCollection
newWithoutAll
in interface ImmutableCharSet
public CharSet freeze()
CharSet
public ImmutableCharSet toImmutable()
CharSet
toImmutable
in interface CharSet
public RichIterable<CharIterable> chunk(int size)
CharIterable
chunk
in interface CharIterable
size
- the number of elements per chunkRichIterable
containing CharIterable
s of size size
, except the last will be
truncated if the elements don't divide evenly.Copyright © 2004–2019. All rights reserved.