Class AbstractImmutableFloatSet
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractFloatIterable
-
- org.eclipse.collections.impl.set.primitive.AbstractFloatSet
-
- org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableFloatSet
-
- All Implemented Interfaces:
ImmutableFloatCollection
,FloatIterable
,PrimitiveIterable
,FloatSet
,ImmutableFloatSet
- Direct Known Subclasses:
FloatHashSet.ImmutableFloatHashSet
,ImmutableFloatFloatMapKeySet
,ImmutableFloatMapKeySet
public abstract class AbstractImmutableFloatSet extends AbstractFloatSet implements ImmutableFloatSet
This file was automatically generated from template file abstractImmutablePrimitiveSet.stg.- Since:
- 6.0.
-
-
Constructor Summary
Constructors Constructor Description AbstractImmutableFloatSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RichIterable<FloatIterable>
chunk(int size)
Partitions elements in fixed size chunks.FloatSet
freeze()
Returns a frozen copy of this set.ImmutableFloatSet
newWith(float element)
ImmutableFloatSet
newWithAll(FloatIterable elements)
ImmutableFloatSet
newWithout(float element)
ImmutableFloatSet
newWithoutAll(FloatIterable elements)
ImmutableFloatSet
toImmutable()
Returns an immutable copy of this set.-
Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractFloatSet
cartesianProduct, equals, hashCode
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.FloatIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, floatIterator, 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
cartesianProduct, collect, equals, hashCode, isProperSubsetOf, isSubsetOf, reject, select, tap
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableFloatSet
collect, difference, intersect, reject, select, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Method Detail
-
newWith
public ImmutableFloatSet newWith(float element)
- Specified by:
newWith
in interfaceImmutableFloatCollection
- Specified by:
newWith
in interfaceImmutableFloatSet
-
newWithout
public ImmutableFloatSet newWithout(float element)
- Specified by:
newWithout
in interfaceImmutableFloatCollection
- Specified by:
newWithout
in interfaceImmutableFloatSet
-
newWithAll
public ImmutableFloatSet newWithAll(FloatIterable elements)
- Specified by:
newWithAll
in interfaceImmutableFloatCollection
- Specified by:
newWithAll
in interfaceImmutableFloatSet
-
newWithoutAll
public ImmutableFloatSet newWithoutAll(FloatIterable elements)
- Specified by:
newWithoutAll
in interfaceImmutableFloatCollection
- Specified by:
newWithoutAll
in interfaceImmutableFloatSet
-
freeze
public FloatSet freeze()
Description copied from interface:FloatSet
Returns a frozen copy of this set. If the set is frozen, it returns itself. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.
-
toImmutable
public ImmutableFloatSet toImmutable()
Description copied from interface:FloatSet
Returns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutable
in interfaceFloatSet
-
chunk
public RichIterable<FloatIterable> chunk(int size)
Description copied from interface:FloatIterable
Partitions elements in fixed size chunks.- Specified by:
chunk
in interfaceFloatIterable
- Parameters:
size
- the number of elements per chunk- Returns:
- A
RichIterable
containingFloatIterable
s of sizesize
, except the last will be truncated if the elements don't divide evenly.
-
-