@NotThreadSafe public final class UnmodifiableFloatSet extends AbstractUnmodifiableFloatCollection implements MutableFloatSet
Modifier and Type | Method and Description |
---|---|
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 UnmodifiableFloatSet |
of(MutableFloatSet set)
This method will take a MutableFloatSet and wrap it directly in a UnmodifiableFloatSet.
|
MutableFloatSet |
reject(FloatPredicate predicate) |
MutableFloatSet |
select(FloatPredicate 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, 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, asLazy, 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 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)
select
in interface MutableFloatCollection
select
in interface FloatIterable
select
in interface FloatSet
select
in interface MutableFloatSet
select
in class AbstractUnmodifiableFloatCollection
public MutableFloatSet reject(FloatPredicate predicate)
reject
in interface MutableFloatCollection
reject
in interface FloatIterable
reject
in interface FloatSet
reject
in interface MutableFloatSet
reject
in class AbstractUnmodifiableFloatCollection
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 AbstractUnmodifiableFloatCollection
public boolean equals(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 MutableFloatCollection
toImmutable
in interface FloatSet
toImmutable
in interface MutableFloatSet
toImmutable
in class AbstractUnmodifiableFloatCollection
Copyright © 2004–2016. All rights reserved.