Class UnmodifiableFloatSet
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection
org.eclipse.collections.impl.set.mutable.primitive.UnmodifiableFloatSet
- All Implemented Interfaces:
Serializable
,MutableFloatCollection
,FloatIterable
,PrimitiveIterable
,FloatSet
,MutableFloatSet
public class UnmodifiableFloatSet extends AbstractUnmodifiableFloatCollection implements MutableFloatSet
This file was automatically generated from template file unmodifiablePrimitiveSet.stg.
- Since:
- 3.1.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description UnmodifiableFloatSet(MutableFloatSet set)
-
Method Summary
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(Object otherSet)
Follows the same general contract asSet.equals(Object)
.FloatSet
freeze()
Returns a frozen copy of this set.int
hashCode()
Follows the same general contract asSet.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)
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableFloatCollection
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, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
Methods inherited from interface org.eclipse.collections.api.FloatIterable
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, toArray, toBag, toList, toSet, toSortedArray, toSortedList
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableFloatCollection
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
Method Details
-
of
This method will take a MutableFloatSet and wrap it directly in a UnmodifiableFloatSet. -
with
- Specified by:
with
in interfaceMutableFloatCollection
- Specified by:
with
in interfaceMutableFloatSet
- Overrides:
with
in classAbstractUnmodifiableFloatCollection
-
without
- Specified by:
without
in interfaceMutableFloatCollection
- Specified by:
without
in interfaceMutableFloatSet
- Overrides:
without
in classAbstractUnmodifiableFloatCollection
-
withAll
- Specified by:
withAll
in interfaceMutableFloatCollection
- Specified by:
withAll
in interfaceMutableFloatSet
- Overrides:
withAll
in classAbstractUnmodifiableFloatCollection
-
withoutAll
- Specified by:
withoutAll
in interfaceMutableFloatCollection
- Specified by:
withoutAll
in interfaceMutableFloatSet
- Overrides:
withoutAll
in classAbstractUnmodifiableFloatCollection
-
select
Description copied from interface:FloatIterable
Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.- Specified by:
select
in interfaceFloatIterable
- Specified by:
select
in interfaceFloatSet
- Specified by:
select
in interfaceMutableFloatCollection
- Specified by:
select
in interfaceMutableFloatSet
- Overrides:
select
in classAbstractUnmodifiableFloatCollection
-
reject
Description copied from interface:FloatIterable
Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.- Specified by:
reject
in interfaceFloatIterable
- Specified by:
reject
in interfaceFloatSet
- Specified by:
reject
in interfaceMutableFloatCollection
- Specified by:
reject
in interfaceMutableFloatSet
- Overrides:
reject
in classAbstractUnmodifiableFloatCollection
-
collect
Description copied from interface:FloatIterable
Returns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collect
in interfaceFloatIterable
- Specified by:
collect
in interfaceFloatSet
- Specified by:
collect
in interfaceMutableFloatCollection
- Specified by:
collect
in interfaceMutableFloatSet
- Overrides:
collect
in classAbstractUnmodifiableFloatCollection
-
equals
Description copied from interface:FloatSet
Follows the same general contract asSet.equals(Object)
. -
hashCode
public int hashCode()Description copied from interface:FloatSet
Follows the same general contract asSet.hashCode()
. -
asUnmodifiable
- Specified by:
asUnmodifiable
in interfaceMutableFloatCollection
- Specified by:
asUnmodifiable
in interfaceMutableFloatSet
- Overrides:
asUnmodifiable
in classAbstractUnmodifiableFloatCollection
-
asSynchronized
- Specified by:
asSynchronized
in interfaceMutableFloatCollection
- Specified by:
asSynchronized
in interfaceMutableFloatSet
- Overrides:
asSynchronized
in classAbstractUnmodifiableFloatCollection
-
freeze
Description copied from interface:MutableFloatSet
Returns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.- Specified by:
freeze
in interfaceFloatSet
- Specified by:
freeze
in interfaceMutableFloatSet
-
toImmutable
Description copied from interface:MutableFloatSet
Returns an immutable copy of this set.- Specified by:
toImmutable
in interfaceFloatSet
- Specified by:
toImmutable
in interfaceMutableFloatCollection
- Specified by:
toImmutable
in interfaceMutableFloatSet
- Overrides:
toImmutable
in classAbstractUnmodifiableFloatCollection
-
newEmpty
Description copied from interface:MutableFloatSet
Creates a new empty mutable version of the same Set type.- Specified by:
newEmpty
in interfaceMutableFloatCollection
- Specified by:
newEmpty
in interfaceMutableFloatSet
- Since:
- 9.2.
-