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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableFloatSet
asSynchronized()
MutableFloatSet
asUnmodifiable()
MutableSet<Float>
boxed()
LazyIterable<FloatFloatPair>
cartesianProduct(FloatSet set)
<V> MutableSet<V>
collect(FloatToObjectFunction<? extends V> function)
boolean
equals(Object otherSet)
FloatSet
freeze()
int
hashCode()
MutableFloatSet
newEmpty()
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()
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, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, floatIterator, 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, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.FloatSet
isProperSubsetOf, isSubsetOf
-
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.set.primitive.MutableFloatSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableFloatSet
public UnmodifiableFloatSet(MutableFloatSet set)
-
-
Method Detail
-
of
public static UnmodifiableFloatSet of(MutableFloatSet set)
This method will take a MutableFloatSet and wrap it directly in a UnmodifiableFloatSet.
-
with
public UnmodifiableFloatSet with(float element)
- Specified by:
with
in interfaceMutableFloatCollection
- Specified by:
with
in interfaceMutableFloatSet
- Overrides:
with
in classAbstractUnmodifiableFloatCollection
-
boxed
public MutableSet<Float> boxed()
- Specified by:
boxed
in interfaceMutableFloatSet
-
without
public UnmodifiableFloatSet without(float element)
- Specified by:
without
in interfaceMutableFloatCollection
- Specified by:
without
in interfaceMutableFloatSet
- Overrides:
without
in classAbstractUnmodifiableFloatCollection
-
withAll
public UnmodifiableFloatSet withAll(FloatIterable elements)
- Specified by:
withAll
in interfaceMutableFloatCollection
- Specified by:
withAll
in interfaceMutableFloatSet
- Overrides:
withAll
in classAbstractUnmodifiableFloatCollection
-
withoutAll
public UnmodifiableFloatSet withoutAll(FloatIterable elements)
- Specified by:
withoutAll
in interfaceMutableFloatCollection
- Specified by:
withoutAll
in interfaceMutableFloatSet
- Overrides:
withoutAll
in classAbstractUnmodifiableFloatCollection
-
select
public MutableFloatSet select(FloatPredicate 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
public MutableFloatSet reject(FloatPredicate 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
public <V> MutableSet<V> collect(FloatToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceFloatIterable
- Specified by:
collect
in interfaceFloatSet
- Specified by:
collect
in interfaceMutableFloatCollection
- Specified by:
collect
in interfaceMutableFloatSet
- Overrides:
collect
in classAbstractUnmodifiableFloatCollection
-
cartesianProduct
public LazyIterable<FloatFloatPair> cartesianProduct(FloatSet set)
- Specified by:
cartesianProduct
in interfaceFloatSet
-
equals
public boolean equals(Object otherSet)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableFloatSet asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableFloatCollection
- Specified by:
asUnmodifiable
in interfaceMutableFloatSet
- Overrides:
asUnmodifiable
in classAbstractUnmodifiableFloatCollection
-
asSynchronized
public MutableFloatSet asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableFloatCollection
- Specified by:
asSynchronized
in interfaceMutableFloatSet
- Overrides:
asSynchronized
in classAbstractUnmodifiableFloatCollection
-
freeze
public FloatSet freeze()
- Specified by:
freeze
in interfaceFloatSet
- Specified by:
freeze
in interfaceMutableFloatSet
-
toImmutable
public ImmutableFloatSet toImmutable()
- Specified by:
toImmutable
in interfaceFloatSet
- Specified by:
toImmutable
in interfaceMutableFloatCollection
- Specified by:
toImmutable
in interfaceMutableFloatSet
- Overrides:
toImmutable
in classAbstractUnmodifiableFloatCollection
-
newEmpty
public MutableFloatSet newEmpty()
- Specified by:
newEmpty
in interfaceMutableFloatCollection
- Specified by:
newEmpty
in interfaceMutableFloatSet
- Since:
- 9.2.
-
-