@ThreadSafe public final class SynchronizedDoubleSet extends AbstractSynchronizedDoubleCollection implements MutableDoubleSet
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.
MutableDoubleSet.asSynchronized()
,
MutableSet.asSynchronized()
,
Serialized FormModifier and Type | Method and Description |
---|---|
LazyDoubleIterable |
asLazy() |
MutableDoubleSet |
asSynchronized() |
MutableDoubleSet |
asUnmodifiable() |
<V> MutableSet<V> |
collect(DoubleToObjectFunction<? extends V> function) |
boolean |
equals(Object otherSet)
Follows the same general contract as
Set.equals(Object) . |
DoubleSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode() . |
static SynchronizedDoubleSet |
of(MutableDoubleSet set)
This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet.
|
static SynchronizedDoubleSet |
of(MutableDoubleSet set,
Object lock)
This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet.
|
MutableDoubleSet |
reject(DoublePredicate predicate) |
MutableDoubleSet |
select(DoublePredicate predicate) |
ImmutableDoubleSet |
toImmutable()
Returns an immutable copy of this set.
|
SynchronizedDoubleSet |
with(double element) |
SynchronizedDoubleSet |
withAll(DoubleIterable elements) |
SynchronizedDoubleSet |
without(double element) |
SynchronizedDoubleSet |
withoutAll(DoubleIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, 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, clear, doubleIterator, 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 SynchronizedDoubleSet of(MutableDoubleSet set)
public static SynchronizedDoubleSet of(MutableDoubleSet set, Object lock)
public SynchronizedDoubleSet without(double element)
without
in interface MutableDoubleCollection
without
in interface MutableDoubleSet
without
in class AbstractSynchronizedDoubleCollection
public SynchronizedDoubleSet with(double element)
with
in interface MutableDoubleCollection
with
in interface MutableDoubleSet
with
in class AbstractSynchronizedDoubleCollection
public SynchronizedDoubleSet withAll(DoubleIterable elements)
withAll
in interface MutableDoubleCollection
withAll
in interface MutableDoubleSet
withAll
in class AbstractSynchronizedDoubleCollection
public SynchronizedDoubleSet withoutAll(DoubleIterable elements)
withoutAll
in interface MutableDoubleCollection
withoutAll
in interface MutableDoubleSet
withoutAll
in class AbstractSynchronizedDoubleCollection
public MutableDoubleSet select(DoublePredicate predicate)
select
in interface MutableDoubleCollection
select
in interface DoubleIterable
select
in interface DoubleSet
select
in interface MutableDoubleSet
select
in class AbstractSynchronizedDoubleCollection
public MutableDoubleSet reject(DoublePredicate predicate)
reject
in interface MutableDoubleCollection
reject
in interface DoubleIterable
reject
in interface DoubleSet
reject
in interface MutableDoubleSet
reject
in class AbstractSynchronizedDoubleCollection
public <V> MutableSet<V> collect(DoubleToObjectFunction<? extends V> function)
collect
in interface MutableDoubleCollection
collect
in interface DoubleIterable
collect
in interface DoubleSet
collect
in interface MutableDoubleSet
collect
in class AbstractSynchronizedDoubleCollection
public boolean equals(Object otherSet)
DoubleSet
Set.equals(Object)
.public int hashCode()
DoubleSet
Set.hashCode()
.public LazyDoubleIterable asLazy()
asLazy
in interface DoubleIterable
asLazy
in class AbstractSynchronizedDoubleCollection
public MutableDoubleSet asUnmodifiable()
asUnmodifiable
in interface MutableDoubleCollection
asUnmodifiable
in interface MutableDoubleSet
asUnmodifiable
in class AbstractSynchronizedDoubleCollection
public MutableDoubleSet asSynchronized()
asSynchronized
in interface MutableDoubleCollection
asSynchronized
in interface MutableDoubleSet
asSynchronized
in class AbstractSynchronizedDoubleCollection
public DoubleSet freeze()
MutableDoubleSet
freeze
in interface DoubleSet
freeze
in interface MutableDoubleSet
public ImmutableDoubleSet toImmutable()
MutableDoubleSet
toImmutable
in interface MutableDoubleCollection
toImmutable
in interface DoubleSet
toImmutable
in interface MutableDoubleSet
toImmutable
in class AbstractSynchronizedDoubleCollection
Copyright © 2004–2016. All rights reserved.