Top Description Fields Constructors Methods
org.eclipse.collections.impl.set.mutable.primitive

public Class SynchronizedCharSet

extends AbstractSynchronizedCharCollection
implements MutableCharSet
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.set.primitive.MutableCharSet, org.eclipse.collections.api.set.primitive.CharSet, org.eclipse.collections.api.CharIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableCharCollection
Imports
java.util.Collection, .Collections, org.eclipse.collections.api.CharIterable, .LazyCharIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.CharToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.CharPredicate, org.eclipse.collections.api.iterator.CharIterator, org.eclipse.collections.api.set.MutableSet, org.eclipse.collections.api.set.primitive.ImmutableCharSet, .CharSet, .MutableCharSet, org.eclipse.collections.api.tuple.primitive.CharCharPair, org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection, org.eclipse.collections.impl.lazy.primitive.LazyCharIterableAdapter, org.eclipse.collections.impl.factory.primitive.CharSets, org.eclipse.collections.impl.set.mutable.SynchronizedMutableSet

A synchronized view of a 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.

Since
3.1.
See Also
MutableCharSet#asSynchronized(), MutableSet#asSynchronized()

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public LazyCharIterable
public MutableCharSet
public MutableCharSet
public MutableSet<Character>
public LazyIterable<CharCharPair>
cartesianProduct(CharSet set)

Implements org.eclipse.collections.api.set.primitive.CharSet.cartesianProduct.

Returns the set whose members are all possible ordered pairs (a, b) where a is a member of this and b is a member of set.

public <V> MutableSet<V>
public boolean
equals(Object otherSet)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.set.primitive.CharSet.equals.

Follows the same general contract as Set#equals(Object).

public CharSet
freeze()

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.freeze.

Returns a frozen copy of this set.

private MutableCharSet
public int
public MutableCharSet
public static SynchronizedCharSet
of(MutableCharSet set)

This method will take a MutableCharSet and wrap it directly in a SynchronizedCharSet.

public static SynchronizedCharSet
of(MutableCharSet set, Object lock)

This method will take a MutableCharSet and wrap it directly in a SynchronizedCharSet.

public MutableCharSet
public MutableCharSet
public ImmutableCharSet
public SynchronizedCharSet
public SynchronizedCharSet
public SynchronizedCharSet
public SynchronizedCharSet
Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringaveragecharIteratorchunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachgetCharCollectiongetLockinjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.serialVersionUID.

Constructor Detail

SynchronizedCharSetback to summary
public SynchronizedCharSet(MutableCharSet set)
SynchronizedCharSetback to summary
public SynchronizedCharSet(MutableCharSet set, Object newLock)

Method Detail

asLazyback to summary
public LazyCharIterable asLazy()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.asLazy.

Implements org.eclipse.collections.api.CharIterable.asLazy.

Doc from org.eclipse.collections.api.CharIterable.asLazy.

Returns a LazyCharIterable adapter wrapping the source CharIterable.

Annotations
@Override
asSynchronizedback to summary
public MutableCharSet asSynchronized()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.asSynchronized.

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableCharCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableCharSet asUnmodifiable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.asUnmodifiable.

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableCharCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableSet<Character> boxed()

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.boxed.

Annotations
@Override
cartesianProductback to summary
public LazyIterable<CharCharPair> cartesianProduct(CharSet set)

Implements org.eclipse.collections.api.set.primitive.CharSet.cartesianProduct.

Doc from org.eclipse.collections.api.set.primitive.CharSet.cartesianProduct.

Returns the set whose members are all possible ordered pairs (a, b) where a is a member of this and b is a member of set.

Annotations
@Override
collectback to summary
public <V> MutableSet<V> collect(CharToObjectFunction<? extends V> function)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.collect.

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.collect, org.eclipse.collections.api.collection.primitive.MutableCharCollection.collect.

Doc from org.eclipse.collections.api.CharIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.

Annotations
@Override
equalsback to summary
public boolean equals(Object otherSet)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.set.primitive.CharSet.equals.

Doc from org.eclipse.collections.api.set.primitive.CharSet.equals.

Follows the same general contract as Set#equals(Object).

Annotations
@Override
freezeback to summary
public CharSet freeze()

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.freeze.

Doc from org.eclipse.collections.api.set.primitive.MutableCharSet.freeze.

Returns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.

getMutableCharSetback to summary
private MutableCharSet getMutableCharSet()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.eclipse.collections.api.set.primitive.CharSet.hashCode.

Doc from org.eclipse.collections.api.set.primitive.CharSet.hashCode.

Follows the same general contract as Set#hashCode().

Annotations
@Override
newEmptyback to summary
public MutableCharSet newEmpty()

Overrides default org.eclipse.collections.api.set.primitive.MutableCharSet.newEmpty, org.eclipse.collections.api.collection.primitive.MutableCharCollection.newEmpty.

Doc from org.eclipse.collections.api.set.primitive.MutableCharSet.newEmpty.

Creates a new empty mutable version of the same Set type.

Since
9.2.
ofback to summary
public static SynchronizedCharSet of(MutableCharSet set)

This method will take a MutableCharSet and wrap it directly in a SynchronizedCharSet.

ofback to summary
public static SynchronizedCharSet of(MutableCharSet set, Object lock)

This method will take a MutableCharSet and wrap it directly in a SynchronizedCharSet. Additionally, a developer specifies which lock to use with the collection.

rejectback to summary
public MutableCharSet reject(CharPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.reject.

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.reject, org.eclipse.collections.api.collection.primitive.MutableCharCollection.reject.

Doc from org.eclipse.collections.api.CharIterable.reject.

Returns a new CharIterable with all of the elements in the CharIterable that return false for the specified predicate.

Annotations
@Override
selectback to summary
public MutableCharSet select(CharPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.select.

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.select, org.eclipse.collections.api.collection.primitive.MutableCharCollection.select.

Doc from org.eclipse.collections.api.CharIterable.select.

Returns a new CharIterable with all of the elements in the CharIterable that return true for the specified predicate.

Annotations
@Override
toImmutableback to summary
public ImmutableCharSet toImmutable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.toImmutable.

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.toImmutable, org.eclipse.collections.api.collection.primitive.MutableCharCollection.toImmutable.

Doc from org.eclipse.collections.api.set.primitive.MutableCharSet.toImmutable.

Returns an immutable copy of this set.

Annotations
@Override
withback to summary
public SynchronizedCharSet with(char element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.with.

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.with, org.eclipse.collections.api.collection.primitive.MutableCharCollection.with.

Annotations
@Override
withAllback to summary
public SynchronizedCharSet withAll(CharIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.withAll.

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.withAll, org.eclipse.collections.api.collection.primitive.MutableCharCollection.withAll.

Annotations
@Override
withoutback to summary
public SynchronizedCharSet without(char element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.without.

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.without, org.eclipse.collections.api.collection.primitive.MutableCharCollection.without.

Annotations
@Override
withoutAllback to summary
public SynchronizedCharSet withoutAll(CharIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedCharCollection.withoutAll.

Implements org.eclipse.collections.api.set.primitive.MutableCharSet.withoutAll, org.eclipse.collections.api.collection.primitive.MutableCharCollection.withoutAll.

Annotations
@Override