Serializable
, CharIterable
, MutableCharCollection
, PrimitiveIterable
, CharSet
, MutableCharSet
public class UnmodifiableCharSet extends AbstractUnmodifiableCharCollection implements MutableCharSet
Constructor | Description |
---|---|
UnmodifiableCharSet(MutableCharSet set) |
Modifier and Type | Method | Description |
---|---|---|
MutableCharSet |
asSynchronized() |
|
MutableCharSet |
asUnmodifiable() |
|
<V> MutableSet<V> |
collect(CharToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
equals(Object otherSet) |
Follows the same general contract as
Set.equals(Object) . |
CharSet |
freeze() |
Returns a frozen copy of this set.
|
int |
hashCode() |
Follows the same general contract as
Set.hashCode() . |
MutableCharSet |
newEmpty() |
Creates a new empty mutable version of the same Set type.
|
static UnmodifiableCharSet |
of(MutableCharSet set) |
This method will take a MutableCharSet and wrap it directly in a UnmodifiableCharSet.
|
MutableCharSet |
reject(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return false for the specified predicate.
|
MutableCharSet |
select(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return true for the specified predicate.
|
ImmutableCharSet |
toImmutable() |
Returns an immutable copy of this set.
|
UnmodifiableCharSet |
with(char element) |
|
UnmodifiableCharSet |
withAll(CharIterable elements) |
|
UnmodifiableCharSet |
without(char element) |
|
UnmodifiableCharSet |
withoutAll(CharIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, charIterator, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, 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
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public UnmodifiableCharSet(MutableCharSet set)
public static UnmodifiableCharSet of(MutableCharSet set)
public UnmodifiableCharSet with(char element)
with
in interface MutableCharCollection
with
in interface MutableCharSet
with
in class AbstractUnmodifiableCharCollection
public UnmodifiableCharSet without(char element)
without
in interface MutableCharCollection
without
in interface MutableCharSet
without
in class AbstractUnmodifiableCharCollection
public UnmodifiableCharSet withAll(CharIterable elements)
withAll
in interface MutableCharCollection
withAll
in interface MutableCharSet
withAll
in class AbstractUnmodifiableCharCollection
public UnmodifiableCharSet withoutAll(CharIterable elements)
withoutAll
in interface MutableCharCollection
withoutAll
in interface MutableCharSet
withoutAll
in class AbstractUnmodifiableCharCollection
public MutableCharSet select(CharPredicate predicate)
CharIterable
select
in interface CharIterable
select
in interface CharSet
select
in interface MutableCharCollection
select
in interface MutableCharSet
select
in class AbstractUnmodifiableCharCollection
public MutableCharSet reject(CharPredicate predicate)
CharIterable
reject
in interface CharIterable
reject
in interface CharSet
reject
in interface MutableCharCollection
reject
in interface MutableCharSet
reject
in class AbstractUnmodifiableCharCollection
public <V> MutableSet<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
collect
in interface CharSet
collect
in interface MutableCharCollection
collect
in interface MutableCharSet
collect
in class AbstractUnmodifiableCharCollection
public boolean equals(Object otherSet)
CharSet
Set.equals(Object)
.public int hashCode()
CharSet
Set.hashCode()
.public MutableCharSet asUnmodifiable()
asUnmodifiable
in interface MutableCharCollection
asUnmodifiable
in interface MutableCharSet
asUnmodifiable
in class AbstractUnmodifiableCharCollection
public MutableCharSet asSynchronized()
asSynchronized
in interface MutableCharCollection
asSynchronized
in interface MutableCharSet
asSynchronized
in class AbstractUnmodifiableCharCollection
public CharSet freeze()
MutableCharSet
freeze
in interface CharSet
freeze
in interface MutableCharSet
public ImmutableCharSet toImmutable()
MutableCharSet
toImmutable
in interface CharSet
toImmutable
in interface MutableCharCollection
toImmutable
in interface MutableCharSet
toImmutable
in class AbstractUnmodifiableCharCollection
public MutableCharSet newEmpty()
MutableCharSet
newEmpty
in interface MutableCharCollection
newEmpty
in interface MutableCharSet
Copyright © 2004–2019. All rights reserved.