Class SynchronizedDoubleSet
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection
org.eclipse.collections.impl.set.mutable.primitive.SynchronizedDoubleSet
- All Implemented Interfaces:
Serializable, MutableDoubleCollection, DoubleIterable, PrimitiveIterable, DoubleSet, MutableDoubleSet
public class SynchronizedDoubleSet
extends AbstractSynchronizedDoubleCollection
implements MutableDoubleSet
A synchronized view of a
MutableDoubleSet. It is imperative that the user manually synchronize on the collection when iterating over it using the
DoubleIterator, as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitiveSet.stg.
- Since:
- 3.1.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasLazy()Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.boxed()Returns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.<V> MutableSet<V> collect(DoubleToObjectFunction<? extends V> function) Returns a new collection with the results of applying the specified function on each element of the source collection.booleanFollows the same general contract asSet.equals(Object).freeze()Returns a frozen copy of this set.private MutableDoubleSetinthashCode()Follows the same general contract asSet.hashCode().newEmpty()Creates a new empty mutable version of the same collection type.static SynchronizedDoubleSetof(MutableDoubleSet set) This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet.static SynchronizedDoubleSetof(MutableDoubleSet set, Object lock) This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet.reject(DoublePredicate predicate) Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.select(DoublePredicate predicate) Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.Returns an immutable copy of this set.with(double element) withAll(DoubleIterable elements) without(double element) withoutAll(DoubleIterable elements) Methods inherited from class AbstractSynchronizedDoubleCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, each, getDoubleCollection, getLock, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface DoubleIterable
allSatisfy, anySatisfy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface DoubleSet
isProperSubsetOf, isSubsetOfMethods inherited from interface MutableDoubleCollection
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface MutableDoubleSet
difference, intersect, symmetricDifference, tap, unionMethods inherited from interface PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SynchronizedDoubleSet
-
SynchronizedDoubleSet
-
-
Method Details
-
of
This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet. -
of
This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet. Additionally, a developer specifies which lock to use with the collection. -
getMutableDoubleSet
-
without
- Specified by:
withoutin interfaceMutableDoubleCollection- Specified by:
withoutin interfaceMutableDoubleSet- Overrides:
withoutin classAbstractSynchronizedDoubleCollection
-
boxed
- Specified by:
boxedin interfaceMutableDoubleSet
-
with
- Specified by:
within interfaceMutableDoubleCollection- Specified by:
within interfaceMutableDoubleSet- Overrides:
within classAbstractSynchronizedDoubleCollection
-
withAll
- Specified by:
withAllin interfaceMutableDoubleCollection- Specified by:
withAllin interfaceMutableDoubleSet- Overrides:
withAllin classAbstractSynchronizedDoubleCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableDoubleCollection- Specified by:
withoutAllin interfaceMutableDoubleSet- Overrides:
withoutAllin classAbstractSynchronizedDoubleCollection
-
select
Description copied from interface:DoubleIterableReturns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleSet- Specified by:
selectin interfaceMutableDoubleCollection- Specified by:
selectin interfaceMutableDoubleSet- Overrides:
selectin classAbstractSynchronizedDoubleCollection
-
reject
Description copied from interface:DoubleIterableReturns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleSet- Specified by:
rejectin interfaceMutableDoubleCollection- Specified by:
rejectin interfaceMutableDoubleSet- Overrides:
rejectin classAbstractSynchronizedDoubleCollection
-
collect
Description copied from interface:DoubleIterableReturns 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.- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleSet- Specified by:
collectin interfaceMutableDoubleCollection- Specified by:
collectin interfaceMutableDoubleSet- Overrides:
collectin classAbstractSynchronizedDoubleCollection
-
cartesianProduct
Description copied from interface:DoubleSetReturns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.- Specified by:
cartesianProductin interfaceDoubleSet
-
equals
-
hashCode
-
asLazy
Description copied from interface:DoubleIterableReturns a LazyDoubleIterable adapter wrapping the source DoubleIterable.- Specified by:
asLazyin interfaceDoubleIterable- Overrides:
asLazyin classAbstractSynchronizedDoubleCollection
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableDoubleCollection- Specified by:
asUnmodifiablein interfaceMutableDoubleSet- Overrides:
asUnmodifiablein classAbstractSynchronizedDoubleCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableDoubleCollection- Specified by:
asSynchronizedin interfaceMutableDoubleSet- Overrides:
asSynchronizedin classAbstractSynchronizedDoubleCollection
-
freeze
Description copied from interface:MutableDoubleSetReturns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.- Specified by:
freezein interfaceDoubleSet- Specified by:
freezein interfaceMutableDoubleSet
-
toImmutable
Description copied from interface:MutableDoubleSetReturns an immutable copy of this set.- Specified by:
toImmutablein interfaceDoubleSet- Specified by:
toImmutablein interfaceMutableDoubleCollection- Specified by:
toImmutablein interfaceMutableDoubleSet- Overrides:
toImmutablein classAbstractSynchronizedDoubleCollection
-
newEmpty
Description copied from interface:MutableDoubleCollectionCreates a new empty mutable version of the same collection type.- Specified by:
newEmptyin interfaceMutableDoubleCollection- Specified by:
newEmptyin interfaceMutableDoubleSet- Since:
- 9.2.
-