Serializable, CharIterable, MutableCharCollection, PrimitiveIterable, CharSet, MutableCharSet@ThreadSafe public final class SynchronizedCharSet extends AbstractSynchronizedCharCollection implements MutableCharSet
MutableCharSet. It is imperative that the user manually synchronize on the collection when iterating over it using the
CharIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveSet.stg.
MutableCharSet.asSynchronized(),
MutableSet.asSynchronized(),
Serialized Form| Constructor | Description |
|---|---|
SynchronizedCharSet(MutableCharSet set) |
|
SynchronizedCharSet(MutableCharSet set,
Object newLock) |
| Modifier and Type | Method | Description |
|---|---|---|
LazyCharIterable |
asLazy() |
Returns a LazyCharIterable adapter wrapping the source CharIterable.
|
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(). |
static SynchronizedCharSet |
of(MutableCharSet set) |
This method will take a MutableCharSet and wrap it directly in a SynchronizedCharSet.
|
static SynchronizedCharSet |
of(MutableCharSet set,
Object lock) |
This method will take a MutableCharSet and wrap it directly in a SynchronizedCharSet.
|
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.
|
SynchronizedCharSet |
with(char element) |
|
SynchronizedCharSet |
withAll(CharIterable elements) |
|
SynchronizedCharSet |
without(char element) |
|
SynchronizedCharSet |
withoutAll(CharIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, 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, toStringallSatisfy, anySatisfy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, retainAll, retainAllappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedCharSet(MutableCharSet set)
public SynchronizedCharSet(MutableCharSet set, Object newLock)
public static SynchronizedCharSet of(MutableCharSet set)
public static SynchronizedCharSet of(MutableCharSet set, Object lock)
public SynchronizedCharSet without(char element)
without in interface MutableCharCollectionwithout in interface MutableCharSetwithout in class AbstractSynchronizedCharCollectionpublic SynchronizedCharSet with(char element)
with in interface MutableCharCollectionwith in interface MutableCharSetwith in class AbstractSynchronizedCharCollectionpublic SynchronizedCharSet withAll(CharIterable elements)
withAll in interface MutableCharCollectionwithAll in interface MutableCharSetwithAll in class AbstractSynchronizedCharCollectionpublic SynchronizedCharSet withoutAll(CharIterable elements)
withoutAll in interface MutableCharCollectionwithoutAll in interface MutableCharSetwithoutAll in class AbstractSynchronizedCharCollectionpublic MutableCharSet select(CharPredicate predicate)
CharIterableselect in interface CharIterableselect in interface CharSetselect in interface MutableCharCollectionselect in interface MutableCharSetselect in class AbstractSynchronizedCharCollectionpublic MutableCharSet reject(CharPredicate predicate)
CharIterablereject in interface CharIterablereject in interface CharSetreject in interface MutableCharCollectionreject in interface MutableCharSetreject in class AbstractSynchronizedCharCollectionpublic <V> MutableSet<V> collect(CharToObjectFunction<? extends V> function)
CharIterablecollect in interface CharIterablecollect in interface CharSetcollect in interface MutableCharCollectioncollect in interface MutableCharSetcollect in class AbstractSynchronizedCharCollectionpublic boolean equals(Object otherSet)
CharSetSet.equals(Object).public int hashCode()
CharSetSet.hashCode().public LazyCharIterable asLazy()
CharIterableasLazy in interface CharIterableasLazy in class AbstractSynchronizedCharCollectionpublic MutableCharSet asUnmodifiable()
asUnmodifiable in interface MutableCharCollectionasUnmodifiable in interface MutableCharSetasUnmodifiable in class AbstractSynchronizedCharCollectionpublic MutableCharSet asSynchronized()
asSynchronized in interface MutableCharCollectionasSynchronized in interface MutableCharSetasSynchronized in class AbstractSynchronizedCharCollectionpublic CharSet freeze()
MutableCharSetfreeze in interface CharSetfreeze in interface MutableCharSetpublic ImmutableCharSet toImmutable()
MutableCharSettoImmutable in interface CharSettoImmutable in interface MutableCharCollectiontoImmutable in interface MutableCharSettoImmutable in class AbstractSynchronizedCharCollectionCopyright © 2004–2017. All rights reserved.