@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, toStringadd, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic static UnmodifiableCharSet of(MutableCharSet set)
public UnmodifiableCharSet with(char element)
with in interface MutableCharCollectionwith in interface MutableCharSetwith in class AbstractUnmodifiableCharCollectionpublic UnmodifiableCharSet without(char element)
without in interface MutableCharCollectionwithout in interface MutableCharSetwithout in class AbstractUnmodifiableCharCollectionpublic UnmodifiableCharSet withAll(CharIterable elements)
withAll in interface MutableCharCollectionwithAll in interface MutableCharSetwithAll in class AbstractUnmodifiableCharCollectionpublic UnmodifiableCharSet withoutAll(CharIterable elements)
withoutAll in interface MutableCharCollectionwithoutAll in interface MutableCharSetwithoutAll in class AbstractUnmodifiableCharCollectionpublic MutableCharSet select(CharPredicate predicate)
select in interface CharIterableselect in interface MutableCharCollectionselect in interface CharSetselect in interface MutableCharSetselect in class AbstractUnmodifiableCharCollectionpublic MutableCharSet reject(CharPredicate predicate)
reject in interface CharIterablereject in interface MutableCharCollectionreject in interface CharSetreject in interface MutableCharSetreject in class AbstractUnmodifiableCharCollectionpublic <V> MutableSet<V> collect(CharToObjectFunction<? extends V> function)
collect in interface CharIterablecollect in interface MutableCharCollectioncollect in interface CharSetcollect in interface MutableCharSetcollect in class AbstractUnmodifiableCharCollectionpublic boolean equals(Object otherSet)
CharSetSet.equals(Object).public int hashCode()
CharSetSet.hashCode().public MutableCharSet asUnmodifiable()
asUnmodifiable in interface MutableCharCollectionasUnmodifiable in interface MutableCharSetasUnmodifiable in class AbstractUnmodifiableCharCollectionpublic MutableCharSet asSynchronized()
asSynchronized in interface MutableCharCollectionasSynchronized in interface MutableCharSetasSynchronized in class AbstractUnmodifiableCharCollectionpublic CharSet freeze()
MutableCharSetfreeze in interface CharSetfreeze in interface MutableCharSetpublic ImmutableCharSet toImmutable()
MutableCharSettoImmutable in interface MutableCharCollectiontoImmutable in interface CharSettoImmutable in interface MutableCharSettoImmutable in class AbstractUnmodifiableCharCollectionCopyright © 2004–2016. All rights reserved.