MutableFloatCollection, FloatIterable, PrimitiveIterable, FloatSet, MutableFloatSetpublic 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 Form| Constructor | 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, toStringallSatisfy, 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, toSortedListadd, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic 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 MutableFloatCollectionwithout in interface MutableFloatSetwithout in class AbstractSynchronizedFloatCollectionpublic SynchronizedFloatSet with(float element)
with in interface MutableFloatCollectionwith in interface MutableFloatSetwith in class AbstractSynchronizedFloatCollectionpublic SynchronizedFloatSet withAll(FloatIterable elements)
withAll in interface MutableFloatCollectionwithAll in interface MutableFloatSetwithAll in class AbstractSynchronizedFloatCollectionpublic SynchronizedFloatSet withoutAll(FloatIterable elements)
withoutAll in interface MutableFloatCollectionwithoutAll in interface MutableFloatSetwithoutAll in class AbstractSynchronizedFloatCollectionpublic MutableFloatSet select(FloatPredicate predicate)
FloatIterableselect in interface FloatIterableselect in interface FloatSetselect in interface MutableFloatCollectionselect in interface MutableFloatSetselect in class AbstractSynchronizedFloatCollectionpublic MutableFloatSet reject(FloatPredicate predicate)
FloatIterablereject in interface FloatIterablereject in interface FloatSetreject in interface MutableFloatCollectionreject in interface MutableFloatSetreject in class AbstractSynchronizedFloatCollectionpublic <V> MutableSet<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterablecollect in interface FloatIterablecollect in interface FloatSetcollect in interface MutableFloatCollectioncollect in interface MutableFloatSetcollect in class AbstractSynchronizedFloatCollectionpublic boolean equals(java.lang.Object otherSet)
FloatSetSet.equals(Object).public int hashCode()
FloatSetSet.hashCode().public LazyFloatIterable asLazy()
FloatIterableasLazy in interface FloatIterableasLazy in class AbstractSynchronizedFloatCollectionpublic MutableFloatSet asUnmodifiable()
asUnmodifiable in interface MutableFloatCollectionasUnmodifiable in interface MutableFloatSetasUnmodifiable in class AbstractSynchronizedFloatCollectionpublic MutableFloatSet asSynchronized()
asSynchronized in interface MutableFloatCollectionasSynchronized in interface MutableFloatSetasSynchronized in class AbstractSynchronizedFloatCollectionpublic FloatSet freeze()
MutableFloatSetfreeze in interface FloatSetfreeze in interface MutableFloatSetpublic ImmutableFloatSet toImmutable()
MutableFloatSettoImmutable in interface FloatSettoImmutable in interface MutableFloatCollectiontoImmutable in interface MutableFloatSettoImmutable in class AbstractSynchronizedFloatCollectionCopyright © 2004–2017. All rights reserved.