java.io.Serializable
, MutableFloatCollection
, FloatIterable
, PrimitiveIterable
, FloatSet
, MutableFloatSet
public 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, toString
allSatisfy, 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, toSortedList
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public UnmodifiableFloatSet(MutableFloatSet set)
public static UnmodifiableFloatSet of(MutableFloatSet set)
public UnmodifiableFloatSet with(float element)
with
in interface MutableFloatCollection
with
in interface MutableFloatSet
with
in class AbstractUnmodifiableFloatCollection
public UnmodifiableFloatSet without(float element)
without
in interface MutableFloatCollection
without
in interface MutableFloatSet
without
in class AbstractUnmodifiableFloatCollection
public UnmodifiableFloatSet withAll(FloatIterable elements)
withAll
in interface MutableFloatCollection
withAll
in interface MutableFloatSet
withAll
in class AbstractUnmodifiableFloatCollection
public UnmodifiableFloatSet withoutAll(FloatIterable elements)
withoutAll
in interface MutableFloatCollection
withoutAll
in interface MutableFloatSet
withoutAll
in class AbstractUnmodifiableFloatCollection
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 AbstractUnmodifiableFloatCollection
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 AbstractUnmodifiableFloatCollection
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 AbstractUnmodifiableFloatCollection
public boolean equals(java.lang.Object otherSet)
FloatSet
Set.equals(Object)
.public int hashCode()
FloatSet
Set.hashCode()
.public MutableFloatSet asUnmodifiable()
asUnmodifiable
in interface MutableFloatCollection
asUnmodifiable
in interface MutableFloatSet
asUnmodifiable
in class AbstractUnmodifiableFloatCollection
public MutableFloatSet asSynchronized()
asSynchronized
in interface MutableFloatCollection
asSynchronized
in interface MutableFloatSet
asSynchronized
in class AbstractUnmodifiableFloatCollection
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 AbstractUnmodifiableFloatCollection
public MutableFloatSet newEmpty()
MutableFloatSet
newEmpty
in interface MutableFloatCollection
newEmpty
in interface MutableFloatSet
Copyright © 2004–2020. All rights reserved.