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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboxed()cartesianProduct(FloatSet set) Returns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.<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.booleanFollows the same general contract asSet.equals(Object).freeze()Returns a frozen copy of this set.private MutableFloatSetinthashCode()Follows the same general contract asSet.hashCode().newEmpty()Creates a new empty mutable version of the same collection type.static UnmodifiableFloatSetof(MutableFloatSet set) This method will take a MutableFloatSet and wrap it directly in a UnmodifiableFloatSet.reject(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.select(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.Returns an immutable copy of this set.with(float element) withAll(FloatIterable elements) without(float element) withoutAll(FloatIterable elements) Methods inherited from class AbstractUnmodifiableFloatCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, floatIterator, getFloatCollection, 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, toStringMethods inherited from interface 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, toSortedListByMethods inherited from interface FloatSet
isProperSubsetOf, isSubsetOfMethods inherited from interface MutableFloatCollection
add, addAll, addAll, clear, floatIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface MutableFloatSet
difference, intersect, symmetricDifference, tap, unionMethods inherited from interface PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
UnmodifiableFloatSet
-
-
Method Details
-
of
This method will take a MutableFloatSet and wrap it directly in a UnmodifiableFloatSet. -
getMutableFloatSet
-
with
- Specified by:
within interfaceMutableFloatCollection- Specified by:
within interfaceMutableFloatSet- Overrides:
within classAbstractUnmodifiableFloatCollection
-
boxed
- Specified by:
boxedin interfaceMutableFloatSet
-
without
- Specified by:
withoutin interfaceMutableFloatCollection- Specified by:
withoutin interfaceMutableFloatSet- Overrides:
withoutin classAbstractUnmodifiableFloatCollection
-
withAll
- Specified by:
withAllin interfaceMutableFloatCollection- Specified by:
withAllin interfaceMutableFloatSet- Overrides:
withAllin classAbstractUnmodifiableFloatCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableFloatCollection- Specified by:
withoutAllin interfaceMutableFloatSet- Overrides:
withoutAllin classAbstractUnmodifiableFloatCollection
-
select
Description copied from interface:FloatIterableReturns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceFloatSet- Specified by:
selectin interfaceMutableFloatCollection- Specified by:
selectin interfaceMutableFloatSet- Overrides:
selectin classAbstractUnmodifiableFloatCollection
-
reject
Description copied from interface:FloatIterableReturns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceFloatSet- Specified by:
rejectin interfaceMutableFloatCollection- Specified by:
rejectin interfaceMutableFloatSet- Overrides:
rejectin classAbstractUnmodifiableFloatCollection
-
collect
Description copied from interface:FloatIterableReturns 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:
collectin interfaceFloatIterable- Specified by:
collectin interfaceFloatSet- Specified by:
collectin interfaceMutableFloatCollection- Specified by:
collectin interfaceMutableFloatSet- Overrides:
collectin classAbstractUnmodifiableFloatCollection
-
cartesianProduct
Description copied from interface:FloatSetReturns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.- Specified by:
cartesianProductin interfaceFloatSet
-
equals
-
hashCode
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatCollection- Specified by:
asUnmodifiablein interfaceMutableFloatSet- Overrides:
asUnmodifiablein classAbstractUnmodifiableFloatCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatCollection- Specified by:
asSynchronizedin interfaceMutableFloatSet- Overrides:
asSynchronizedin classAbstractUnmodifiableFloatCollection
-
freeze
Description copied from interface:MutableFloatSetReturns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.- Specified by:
freezein interfaceFloatSet- Specified by:
freezein interfaceMutableFloatSet
-
toImmutable
Description copied from interface:MutableFloatSetReturns an immutable copy of this set.- Specified by:
toImmutablein interfaceFloatSet- Specified by:
toImmutablein interfaceMutableFloatCollection- Specified by:
toImmutablein interfaceMutableFloatSet- Overrides:
toImmutablein classAbstractUnmodifiableFloatCollection
-
newEmpty
Description copied from interface:MutableFloatCollectionCreates a new empty mutable version of the same collection type.- Specified by:
newEmptyin interfaceMutableFloatCollection- Specified by:
newEmptyin interfaceMutableFloatSet- Since:
- 9.2.
-