@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 FormModifier and Type | Method and Description |
---|---|
LazyCharIterable |
asLazy() |
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 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) |
MutableCharSet |
select(CharPredicate 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, toString
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, retainAll, retainAll
allSatisfy, anySatisfy, 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 SynchronizedCharSet of(MutableCharSet set)
public static SynchronizedCharSet of(MutableCharSet set, Object lock)
public SynchronizedCharSet without(char element)
without
in interface MutableCharCollection
without
in interface MutableCharSet
without
in class AbstractSynchronizedCharCollection
public SynchronizedCharSet with(char element)
with
in interface MutableCharCollection
with
in interface MutableCharSet
with
in class AbstractSynchronizedCharCollection
public SynchronizedCharSet withAll(CharIterable elements)
withAll
in interface MutableCharCollection
withAll
in interface MutableCharSet
withAll
in class AbstractSynchronizedCharCollection
public SynchronizedCharSet withoutAll(CharIterable elements)
withoutAll
in interface MutableCharCollection
withoutAll
in interface MutableCharSet
withoutAll
in class AbstractSynchronizedCharCollection
public MutableCharSet select(CharPredicate predicate)
select
in interface CharIterable
select
in interface MutableCharCollection
select
in interface CharSet
select
in interface MutableCharSet
select
in class AbstractSynchronizedCharCollection
public MutableCharSet reject(CharPredicate predicate)
reject
in interface CharIterable
reject
in interface MutableCharCollection
reject
in interface CharSet
reject
in interface MutableCharSet
reject
in class AbstractSynchronizedCharCollection
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 AbstractSynchronizedCharCollection
public boolean equals(Object otherSet)
CharSet
Set.equals(Object)
.public int hashCode()
CharSet
Set.hashCode()
.public LazyCharIterable asLazy()
asLazy
in interface CharIterable
asLazy
in class AbstractSynchronizedCharCollection
public MutableCharSet asUnmodifiable()
asUnmodifiable
in interface MutableCharCollection
asUnmodifiable
in interface MutableCharSet
asUnmodifiable
in class AbstractSynchronizedCharCollection
public MutableCharSet asSynchronized()
asSynchronized
in interface MutableCharCollection
asSynchronized
in interface MutableCharSet
asSynchronized
in class AbstractSynchronizedCharCollection
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 AbstractSynchronizedCharCollection
Copyright © 2004–2016. All rights reserved.