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 aMutableDoubleSet. It is imperative that the user manually synchronize on the collection when iterating over it using theDoubleIterator, as perCollections.synchronizedCollection(Collection).This file was automatically generated from template file synchronizedPrimitiveSet.stg.
- Since:
- 3.1.
- See Also:
MutableDoubleSet.asSynchronized(),MutableSet.asSynchronized(), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedDoubleSet(MutableDoubleSet set)SynchronizedDoubleSet(MutableDoubleSet set, Object newLock)
-
Method Summary
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, each, 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, toString
-
Methods inherited from interface org.eclipse.collections.api.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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.DoubleSet
isProperSubsetOf, isSubsetOf
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollection
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableDoubleSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
SynchronizedDoubleSet
public SynchronizedDoubleSet(MutableDoubleSet set)
-
SynchronizedDoubleSet
public SynchronizedDoubleSet(MutableDoubleSet set, Object newLock)
-
-
Method Detail
-
of
public static SynchronizedDoubleSet of(MutableDoubleSet set)
This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet.
-
of
public static SynchronizedDoubleSet of(MutableDoubleSet set, Object lock)
This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet. Additionally, a developer specifies which lock to use with the collection.
-
without
public SynchronizedDoubleSet without(double element)
- Specified by:
withoutin interfaceMutableDoubleCollection- Specified by:
withoutin interfaceMutableDoubleSet- Overrides:
withoutin classAbstractSynchronizedDoubleCollection
-
boxed
public MutableSet<Double> boxed()
- Specified by:
boxedin interfaceMutableDoubleSet
-
with
public SynchronizedDoubleSet with(double element)
- Specified by:
within interfaceMutableDoubleCollection- Specified by:
within interfaceMutableDoubleSet- Overrides:
within classAbstractSynchronizedDoubleCollection
-
withAll
public SynchronizedDoubleSet withAll(DoubleIterable elements)
- Specified by:
withAllin interfaceMutableDoubleCollection- Specified by:
withAllin interfaceMutableDoubleSet- Overrides:
withAllin classAbstractSynchronizedDoubleCollection
-
withoutAll
public SynchronizedDoubleSet withoutAll(DoubleIterable elements)
- Specified by:
withoutAllin interfaceMutableDoubleCollection- Specified by:
withoutAllin interfaceMutableDoubleSet- Overrides:
withoutAllin classAbstractSynchronizedDoubleCollection
-
select
public MutableDoubleSet select(DoublePredicate predicate)
- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleSet- Specified by:
selectin interfaceMutableDoubleCollection- Specified by:
selectin interfaceMutableDoubleSet- Overrides:
selectin classAbstractSynchronizedDoubleCollection
-
reject
public MutableDoubleSet reject(DoublePredicate predicate)
- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleSet- Specified by:
rejectin interfaceMutableDoubleCollection- Specified by:
rejectin interfaceMutableDoubleSet- Overrides:
rejectin classAbstractSynchronizedDoubleCollection
-
collect
public <V> MutableSet<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleSet- Specified by:
collectin interfaceMutableDoubleCollection- Specified by:
collectin interfaceMutableDoubleSet- Overrides:
collectin classAbstractSynchronizedDoubleCollection
-
cartesianProduct
public LazyIterable<DoubleDoublePair> cartesianProduct(DoubleSet set)
- Specified by:
cartesianProductin interfaceDoubleSet
-
equals
public boolean equals(Object otherSet)
-
hashCode
public int hashCode()
-
asLazy
public LazyDoubleIterable asLazy()
- Specified by:
asLazyin interfaceDoubleIterable- Overrides:
asLazyin classAbstractSynchronizedDoubleCollection
-
asUnmodifiable
public MutableDoubleSet asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleCollection- Specified by:
asUnmodifiablein interfaceMutableDoubleSet- Overrides:
asUnmodifiablein classAbstractSynchronizedDoubleCollection
-
asSynchronized
public MutableDoubleSet asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleCollection- Specified by:
asSynchronizedin interfaceMutableDoubleSet- Overrides:
asSynchronizedin classAbstractSynchronizedDoubleCollection
-
freeze
public DoubleSet freeze()
- Specified by:
freezein interfaceDoubleSet- Specified by:
freezein interfaceMutableDoubleSet
-
toImmutable
public ImmutableDoubleSet toImmutable()
- Specified by:
toImmutablein interfaceDoubleSet- Specified by:
toImmutablein interfaceMutableDoubleCollection- Specified by:
toImmutablein interfaceMutableDoubleSet- Overrides:
toImmutablein classAbstractSynchronizedDoubleCollection
-
newEmpty
public MutableDoubleSet newEmpty()
- Specified by:
newEmptyin interfaceMutableDoubleCollection- Specified by:
newEmptyin interfaceMutableDoubleSet- Since:
- 9.2.
-
-