java.io.Serializable, CharIterable, MutableCharCollection, PrimitiveIterable, CharSet, MutableCharSetpublic 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(java.lang.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, toStringallSatisfy, 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, toSortedListadd, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableCharSet(MutableCharSet set)
public 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)
CharIterableselect in interface CharIterableselect in interface CharSetselect in interface MutableCharCollectionselect in interface MutableCharSetselect in class AbstractUnmodifiableCharCollectionpublic MutableCharSet reject(CharPredicate predicate)
CharIterablereject in interface CharIterablereject in interface CharSetreject in interface MutableCharCollectionreject in interface MutableCharSetreject in class AbstractUnmodifiableCharCollectionpublic <V> MutableSet<V> collect(CharToObjectFunction<? extends V> function)
CharIterablecollect in interface CharIterablecollect in interface CharSetcollect in interface MutableCharCollectioncollect in interface MutableCharSetcollect in class AbstractUnmodifiableCharCollectionpublic boolean equals(java.lang.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 CharSettoImmutable in interface MutableCharCollectiontoImmutable in interface MutableCharSettoImmutable in class AbstractUnmodifiableCharCollectionpublic MutableCharSet newEmpty()
MutableCharSetnewEmpty in interface MutableCharCollectionnewEmpty in interface MutableCharSetCopyright © 2004–2020. All rights reserved.