MutableFloatCollection
, FloatIterable
, PrimitiveIterable
, FloatSet
, MutableFloatSet
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 FormConstructor | Description |
---|---|
SynchronizedFloatSet(MutableFloatSet set) |
|
SynchronizedFloatSet(MutableFloatSet set,
java.lang.Object newLock) |
Modifier and Type | Method | Description |
---|---|---|
LazyFloatIterable |
asLazy() |
Returns a LazyFloatIterable adapter wrapping the source FloatIterable.
|
MutableFloatSet |
asSynchronized() |
|
MutableFloatSet |
asUnmodifiable() |
|
<V> MutableSet<V> |
collect(FloatToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
equals(java.lang.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,
java.lang.Object lock) |
This method will take a MutableFloatSet and wrap it directly in a SynchronizedFloatSet.
|
MutableFloatSet |
reject(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return false for the specified predicate.
|
MutableFloatSet |
select(FloatPredicate predicate) |
Returns a new FloatIterable with all of the elements in the FloatIterable that
return true for the specified 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
allSatisfy, anySatisfy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public SynchronizedFloatSet(MutableFloatSet set)
public SynchronizedFloatSet(MutableFloatSet set, java.lang.Object newLock)
public static SynchronizedFloatSet of(MutableFloatSet set)
public static SynchronizedFloatSet of(MutableFloatSet set, java.lang.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)
FloatIterable
select
in interface FloatIterable
select
in interface FloatSet
select
in interface MutableFloatCollection
select
in interface MutableFloatSet
select
in class AbstractSynchronizedFloatCollection
public MutableFloatSet reject(FloatPredicate predicate)
FloatIterable
reject
in interface FloatIterable
reject
in interface FloatSet
reject
in interface MutableFloatCollection
reject
in interface MutableFloatSet
reject
in class AbstractSynchronizedFloatCollection
public <V> MutableSet<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterable
collect
in interface FloatIterable
collect
in interface FloatSet
collect
in interface MutableFloatCollection
collect
in interface MutableFloatSet
collect
in class AbstractSynchronizedFloatCollection
public boolean equals(java.lang.Object otherSet)
FloatSet
Set.equals(Object)
.public int hashCode()
FloatSet
Set.hashCode()
.public LazyFloatIterable asLazy()
FloatIterable
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 FloatSet
toImmutable
in interface MutableFloatCollection
toImmutable
in interface MutableFloatSet
toImmutable
in class AbstractSynchronizedFloatCollection
Copyright © 2004–2017. All rights reserved.