@ThreadSafe public final class SynchronizedDoubleSet extends AbstractSynchronizedDoubleCollection implements com.gs.collections.api.set.primitive.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 Form| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.LazyDoubleIterable |
asLazy() |
com.gs.collections.api.set.primitive.MutableDoubleSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableDoubleSet |
asUnmodifiable() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function) |
boolean |
equals(java.lang.Object otherSet)
Follows the same general contract as
Set.equals(Object). |
com.gs.collections.api.set.primitive.DoubleSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
static SynchronizedDoubleSet |
of(com.gs.collections.api.set.primitive.MutableDoubleSet set)
This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet.
|
static SynchronizedDoubleSet |
of(com.gs.collections.api.set.primitive.MutableDoubleSet set,
java.lang.Object lock)
This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet.
|
com.gs.collections.api.set.primitive.MutableDoubleSet |
reject(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
com.gs.collections.api.set.primitive.MutableDoubleSet |
select(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate) |
com.gs.collections.api.set.primitive.ImmutableDoubleSet |
toImmutable()
Returns an immutable copy of this set.
|
SynchronizedDoubleSet |
with(double element) |
SynchronizedDoubleSet |
withAll(com.gs.collections.api.DoubleIterable elements) |
SynchronizedDoubleSet |
without(double element) |
SynchronizedDoubleSet |
withoutAll(com.gs.collections.api.DoubleIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, doubleIterator, each, forEach, getDoubleCollection, getLock, 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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, retainAll, retainAllallSatisfy, anySatisfy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListpublic static SynchronizedDoubleSet of(com.gs.collections.api.set.primitive.MutableDoubleSet set)
public static SynchronizedDoubleSet of(com.gs.collections.api.set.primitive.MutableDoubleSet set, java.lang.Object lock)
public SynchronizedDoubleSet without(double element)
without in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithout in interface com.gs.collections.api.set.primitive.MutableDoubleSetwithout in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleSet with(double element)
with in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwith in interface com.gs.collections.api.set.primitive.MutableDoubleSetwith in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleSet withAll(com.gs.collections.api.DoubleIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableDoubleSetwithAll in class AbstractSynchronizedDoubleCollectionpublic SynchronizedDoubleSet withoutAll(com.gs.collections.api.DoubleIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableDoubleSetwithoutAll in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.set.primitive.MutableDoubleSet select(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionselect in interface com.gs.collections.api.DoubleIterableselect in interface com.gs.collections.api.set.primitive.DoubleSetselect in interface com.gs.collections.api.set.primitive.MutableDoubleSetselect in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.set.primitive.MutableDoubleSet reject(com.gs.collections.api.block.predicate.primitive.DoublePredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionreject in interface com.gs.collections.api.DoubleIterablereject in interface com.gs.collections.api.set.primitive.DoubleSetreject in interface com.gs.collections.api.set.primitive.MutableDoubleSetreject in class AbstractSynchronizedDoubleCollectionpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.DoubleToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectioncollect in interface com.gs.collections.api.DoubleIterablecollect in interface com.gs.collections.api.set.primitive.DoubleSetcollect in interface com.gs.collections.api.set.primitive.MutableDoubleSetcollect in class AbstractSynchronizedDoubleCollectionpublic boolean equals(java.lang.Object otherSet)
com.gs.collections.api.set.primitive.DoubleSetSet.equals(Object).equals in interface com.gs.collections.api.set.primitive.DoubleSetequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.set.primitive.DoubleSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.DoubleSethashCode in class java.lang.Objectpublic com.gs.collections.api.LazyDoubleIterable asLazy()
asLazy in interface com.gs.collections.api.DoubleIterableasLazy in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.set.primitive.MutableDoubleSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableDoubleSetasUnmodifiable in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.set.primitive.MutableDoubleSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableDoubleSetasSynchronized in class AbstractSynchronizedDoubleCollectionpublic com.gs.collections.api.set.primitive.DoubleSet freeze()
com.gs.collections.api.set.primitive.MutableDoubleSetfreeze in interface com.gs.collections.api.set.primitive.DoubleSetfreeze in interface com.gs.collections.api.set.primitive.MutableDoubleSetpublic com.gs.collections.api.set.primitive.ImmutableDoubleSet toImmutable()
com.gs.collections.api.set.primitive.MutableDoubleSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableDoubleCollectiontoImmutable in interface com.gs.collections.api.set.primitive.DoubleSettoImmutable in interface com.gs.collections.api.set.primitive.MutableDoubleSettoImmutable in class AbstractSynchronizedDoubleCollection