@ThreadSafe public final class SynchronizedFloatSet extends AbstractSynchronizedFloatCollection implements MutableFloatSet
MutableFloatSet
. It is imperative that the user manually synchronize on the collection when iterating over it using the
FloatIterator
, as per Collections.synchronizedCollection(Collection)
.
This file was automatically generated from template file synchronizedPrimitiveSet.stg.
MutableFloatSet.asSynchronized()
,
MutableSet.asSynchronized()
,
Serialized FormModifier and Type | Method and Description |
---|---|
LazyFloatIterable |
asLazy() |
MutableFloatSet |
asSynchronized() |
MutableFloatSet |
asUnmodifiable() |
<V> MutableSet<V> |
collect(FloatToObjectFunction<? extends V> function) |
boolean |
equals(Object otherSet)
Follows the same general contract as
Set.equals(Object) . |
FloatSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode() . |
static SynchronizedFloatSet |
of(MutableFloatSet set)
This method will take a MutableFloatSet and wrap it directly in a SynchronizedFloatSet.
|
static SynchronizedFloatSet |
of(MutableFloatSet set,
Object lock)
This method will take a MutableFloatSet and wrap it directly in a SynchronizedFloatSet.
|
MutableFloatSet |
reject(FloatPredicate predicate) |
MutableFloatSet |
select(FloatPredicate predicate) |
ImmutableFloatSet |
toImmutable()
Returns an immutable copy of this set.
|
SynchronizedFloatSet |
with(float element) |
SynchronizedFloatSet |
withAll(FloatIterable elements) |
SynchronizedFloatSet |
without(float element) |
SynchronizedFloatSet |
withoutAll(FloatIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, average, clear, contains, containsAll, containsAll, count, detectIfNone, each, floatIterator, 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, floatIterator, 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 SynchronizedFloatSet of(MutableFloatSet set)
public static SynchronizedFloatSet of(MutableFloatSet set, Object lock)
public SynchronizedFloatSet without(float element)
without
in interface MutableFloatCollection
without
in interface MutableFloatSet
without
in class AbstractSynchronizedFloatCollection
public SynchronizedFloatSet with(float element)
with
in interface MutableFloatCollection
with
in interface MutableFloatSet
with
in class AbstractSynchronizedFloatCollection
public SynchronizedFloatSet withAll(FloatIterable elements)
withAll
in interface MutableFloatCollection
withAll
in interface MutableFloatSet
withAll
in class AbstractSynchronizedFloatCollection
public SynchronizedFloatSet withoutAll(FloatIterable elements)
withoutAll
in interface MutableFloatCollection
withoutAll
in interface MutableFloatSet
withoutAll
in class AbstractSynchronizedFloatCollection
public MutableFloatSet select(FloatPredicate predicate)
select
in interface MutableFloatCollection
select
in interface FloatIterable
select
in interface FloatSet
select
in interface MutableFloatSet
select
in class AbstractSynchronizedFloatCollection
public MutableFloatSet reject(FloatPredicate predicate)
reject
in interface MutableFloatCollection
reject
in interface FloatIterable
reject
in interface FloatSet
reject
in interface MutableFloatSet
reject
in class AbstractSynchronizedFloatCollection
public <V> MutableSet<V> collect(FloatToObjectFunction<? extends V> function)
collect
in interface MutableFloatCollection
collect
in interface FloatIterable
collect
in interface FloatSet
collect
in interface MutableFloatSet
collect
in class AbstractSynchronizedFloatCollection
public boolean equals(Object otherSet)
FloatSet
Set.equals(Object)
.public int hashCode()
FloatSet
Set.hashCode()
.public LazyFloatIterable asLazy()
asLazy
in interface FloatIterable
asLazy
in class AbstractSynchronizedFloatCollection
public MutableFloatSet asUnmodifiable()
asUnmodifiable
in interface MutableFloatCollection
asUnmodifiable
in interface MutableFloatSet
asUnmodifiable
in class AbstractSynchronizedFloatCollection
public MutableFloatSet asSynchronized()
asSynchronized
in interface MutableFloatCollection
asSynchronized
in interface MutableFloatSet
asSynchronized
in class AbstractSynchronizedFloatCollection
public FloatSet freeze()
MutableFloatSet
freeze
in interface FloatSet
freeze
in interface MutableFloatSet
public ImmutableFloatSet toImmutable()
MutableFloatSet
toImmutable
in interface MutableFloatCollection
toImmutable
in interface FloatSet
toImmutable
in interface MutableFloatSet
toImmutable
in class AbstractSynchronizedFloatCollection
Copyright © 2004–2016. All rights reserved.