@NotThreadSafe public final class UnmodifiableCharSet extends AbstractUnmodifiableCharCollection implements MutableCharSet
Modifier and Type | Method and Description |
---|---|
MutableCharSet |
asSynchronized() |
MutableCharSet |
asUnmodifiable() |
<V> MutableSet<V> |
collect(CharToObjectFunction<? extends V> function) |
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() . |
static UnmodifiableCharSet |
of(MutableCharSet set)
This method will take a MutableCharSet and wrap it directly in a UnmodifiableCharSet.
|
MutableCharSet |
reject(CharPredicate predicate) |
MutableCharSet |
select(CharPredicate 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, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, retainAll, retainAll
allSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
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)
select
in interface CharIterable
select
in interface MutableCharCollection
select
in interface CharSet
select
in interface MutableCharSet
select
in class AbstractUnmodifiableCharCollection
public MutableCharSet reject(CharPredicate predicate)
reject
in interface CharIterable
reject
in interface MutableCharCollection
reject
in interface CharSet
reject
in interface MutableCharSet
reject
in class AbstractUnmodifiableCharCollection
public <V> MutableSet<V> collect(CharToObjectFunction<? extends V> function)
collect
in interface CharIterable
collect
in interface MutableCharCollection
collect
in interface CharSet
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 MutableCharCollection
toImmutable
in interface CharSet
toImmutable
in interface MutableCharSet
toImmutable
in class AbstractUnmodifiableCharCollection
Copyright © 2004–2016. All rights reserved.