java.io.Serializable, MutableFloatCollection, FloatIterable, PrimitiveIterable, FloatSet, MutableFloatSetpublic class UnmodifiableFloatSet extends AbstractUnmodifiableFloatCollection implements MutableFloatSet
| Constructor | Description |
|---|---|
UnmodifiableFloatSet(MutableFloatSet set) |
| Modifier and Type | Method | Description |
|---|---|---|
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(). |
MutableFloatSet |
newEmpty() |
Creates a new empty mutable version of the same Set type.
|
static UnmodifiableFloatSet |
of(MutableFloatSet set) |
This method will take a MutableFloatSet and wrap it directly in a UnmodifiableFloatSet.
|
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.
|
UnmodifiableFloatSet |
with(float element) |
|
UnmodifiableFloatSet |
withAll(FloatIterable elements) |
|
UnmodifiableFloatSet |
without(float element) |
|
UnmodifiableFloatSet |
withoutAll(FloatIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, floatIterator, forEach, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringallSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, 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, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListadd, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAlltapappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic UnmodifiableFloatSet(MutableFloatSet set)
public static UnmodifiableFloatSet of(MutableFloatSet set)
public UnmodifiableFloatSet with(float element)
with in interface MutableFloatCollectionwith in interface MutableFloatSetwith in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatSet without(float element)
without in interface MutableFloatCollectionwithout in interface MutableFloatSetwithout in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatSet withAll(FloatIterable elements)
withAll in interface MutableFloatCollectionwithAll in interface MutableFloatSetwithAll in class AbstractUnmodifiableFloatCollectionpublic UnmodifiableFloatSet withoutAll(FloatIterable elements)
withoutAll in interface MutableFloatCollectionwithoutAll in interface MutableFloatSetwithoutAll in class AbstractUnmodifiableFloatCollectionpublic MutableFloatSet select(FloatPredicate predicate)
FloatIterableselect in interface FloatIterableselect in interface FloatSetselect in interface MutableFloatCollectionselect in interface MutableFloatSetselect in class AbstractUnmodifiableFloatCollectionpublic MutableFloatSet reject(FloatPredicate predicate)
FloatIterablereject in interface FloatIterablereject in interface FloatSetreject in interface MutableFloatCollectionreject in interface MutableFloatSetreject in class AbstractUnmodifiableFloatCollectionpublic <V> MutableSet<V> collect(FloatToObjectFunction<? extends V> function)
FloatIterablecollect in interface FloatIterablecollect in interface FloatSetcollect in interface MutableFloatCollectioncollect in interface MutableFloatSetcollect in class AbstractUnmodifiableFloatCollectionpublic boolean equals(java.lang.Object otherSet)
FloatSetSet.equals(Object).public int hashCode()
FloatSetSet.hashCode().public MutableFloatSet asUnmodifiable()
asUnmodifiable in interface MutableFloatCollectionasUnmodifiable in interface MutableFloatSetasUnmodifiable in class AbstractUnmodifiableFloatCollectionpublic MutableFloatSet asSynchronized()
asSynchronized in interface MutableFloatCollectionasSynchronized in interface MutableFloatSetasSynchronized in class AbstractUnmodifiableFloatCollectionpublic FloatSet freeze()
MutableFloatSetfreeze in interface FloatSetfreeze in interface MutableFloatSetpublic ImmutableFloatSet toImmutable()
MutableFloatSettoImmutable in interface FloatSettoImmutable in interface MutableFloatCollectiontoImmutable in interface MutableFloatSettoImmutable in class AbstractUnmodifiableFloatCollectionpublic MutableFloatSet newEmpty()
MutableFloatSetnewEmpty in interface MutableFloatCollectionnewEmpty in interface MutableFloatSetCopyright © 2004–2020. All rights reserved.