Serializable
, CharIterable
, MutableCharCollection
, PrimitiveIterable
, CharSet
, MutableCharSet
public 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 FormConstructor | 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() . |
MutableCharSet |
newEmpty() |
Creates a new empty mutable version of the same Set type.
|
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, 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, toString
allSatisfy, anySatisfy, 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, toSortedList
add, addAll, addAll, charIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public 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 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)
CharIterable
select
in interface CharIterable
select
in interface CharSet
select
in interface MutableCharCollection
select
in interface MutableCharSet
select
in class AbstractSynchronizedCharCollection
public MutableCharSet reject(CharPredicate predicate)
CharIterable
reject
in interface CharIterable
reject
in interface CharSet
reject
in interface MutableCharCollection
reject
in interface MutableCharSet
reject
in class AbstractSynchronizedCharCollection
public <V> MutableSet<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
collect
in interface CharSet
collect
in interface MutableCharCollection
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()
CharIterable
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 CharSet
toImmutable
in interface MutableCharCollection
toImmutable
in interface MutableCharSet
toImmutable
in class AbstractSynchronizedCharCollection
public MutableCharSet newEmpty()
MutableCharSet
newEmpty
in interface MutableCharCollection
newEmpty
in interface MutableCharSet
Copyright © 2004–2019. All rights reserved.