Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.set.mutable.primitive

public Class BoxedMutableFloatSet

extends AbstractMutableSet<Float>
implements MutableSet<Float>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.set.MutableSet, java.lang.Cloneable, org.eclipse.collections.api.set.MutableSetIterable, java.util.Set, java.util.Collection, java.lang.Iterable, org.eclipse.collections.api.collection.MutableCollection, org.eclipse.collections.api.RichIterable, org.eclipse.collections.api.InternalIterable, org.eclipse.collections.api.set.SetIterable, org.eclipse.collections.api.set.UnsortedSetIterable
Imports
java.util.Iterator, .Objects, .Set, java.util.concurrent.ExecutorService, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.iterator.MutableFloatIterator, org.eclipse.collections.api.set.MutableSet, .ParallelUnsortedSetIterable, org.eclipse.collections.api.set.primitive.MutableFloatSet, org.eclipse.collections.impl.set.mutable.AbstractMutableSet

A boxed view of a MutableFloatSet. This is for scenarios where optimization is not a consideration and therefore no further methods will be optimized.

This file was automatically generated from template file boxedPrimitiveSet.stg.

Since
12.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private final MutableFloatSet

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
add(Float item)

Overrides org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection.add.

Implements java.util.Collection.add, java.util.Set.add.

Adds the specified element to this set if it is not already present (optional operation).

public ParallelUnsortedSetIterable<Float>
asParallel(ExecutorService executorService, int batchSize)

Implements org.eclipse.collections.api.set.UnsortedSetIterable.asParallel, org.eclipse.collections.api.set.SetIterable.asParallel.

Returns a parallel iterable of this SetIterable.

public void
clear()

Implements java.util.Collection.clear, java.util.Set.clear.

Removes all of the elements from this set (optional operation).

public boolean
contains(Object object)

Overrides org.eclipse.collections.impl.AbstractRichIterable.contains.

Implements org.eclipse.collections.api.RichIterable.contains, java.util.Collection.contains, java.util.Set.contains.

Returns true if the iterable has an element which responds true to element.equals(object).

public void
each(Procedure<? super Float> procedure)

Implements org.eclipse.collections.api.RichIterable.each.

The procedure is executed for each element in the iterable.

public boolean
public Float
getFirst()

Implements org.eclipse.collections.api.RichIterable.getFirst.

Returns the first element of an iterable.

public Float
getLast()

Implements org.eclipse.collections.api.RichIterable.getLast.

Returns the last element of an iterable.

public int
public Iterator<Float>
iterator()

Implements java.lang.Iterable.iterator, java.util.Collection.iterator, java.util.Set.iterator.

Returns an iterator over elements of type T.

public boolean
remove(Object object)

Overrides org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection.remove.

Implements java.util.Collection.remove, java.util.Set.remove.

Removes the specified element from this set if it is present (optional operation).

public int
size()

Implements org.eclipse.collections.api.RichIterable.size, java.util.Collection.size, java.util.Set.size.

Returns the number of items in this iterable.

Inherited from org.eclipse.collections.impl.set.mutable.AbstractMutableSet:
asSynchronizedasUnmodifiablecartesianProductclonecollectcollectIfcollectWithdifferencedifferenceIntoflatCollectgroupBygroupByEachintersectintersectIntoisProperSubsetOfisSubsetOfnewEmptynewEmptySameSizepartitionpartitionWithpowerSetrejectrejectWithremoveAllIterableselectselectInstancesOfselectWithsymmetricDifferencesymmetricDifferenceIntotaptoImmutableunionunionIntozipzipWithIndex

Field Detail

delegateback to summary
private final MutableFloatSet delegate

Constructor Detail

BoxedMutableFloatSetback to summary
public BoxedMutableFloatSet(MutableFloatSet delegate)

Method Detail

addback to summary
public boolean add(Float item)

Overrides org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection.add.

Implements java.util.Collection.add, java.util.Set.add.

Doc from java.util.Set.add.

Adds the specified element to this set if it is not already present (optional operation). More formally, adds the specified element e to this set if the set contains no element e2 such that Objects.equals(e, e2). If this set already contains the element, the call leaves the set unchanged and returns false. In combination with the restriction on constructors, this ensures that sets never contain duplicate elements.

The stipulation above does not imply that sets must accept all elements; sets may refuse to add any particular element, including null, and throw an exception, as described in the specification for Collection.add. Individual set implementations should clearly document any restrictions on the elements that they may contain.

Annotations
@Override
asParallelback to summary
public ParallelUnsortedSetIterable<Float> asParallel(ExecutorService executorService, int batchSize)

Implements org.eclipse.collections.api.set.UnsortedSetIterable.asParallel, org.eclipse.collections.api.set.SetIterable.asParallel.

Doc from org.eclipse.collections.api.set.SetIterable.asParallel.

Returns a parallel iterable of this SetIterable.

Annotations
@Override
clearback to summary
public void clear()

Implements java.util.Collection.clear, java.util.Set.clear.

Doc from java.util.Set.clear.

Removes all of the elements from this set (optional operation). The set will be empty after this call returns.

Annotations
@Override
containsback to summary
public boolean contains(Object object)

Overrides org.eclipse.collections.impl.AbstractRichIterable.contains.

Implements org.eclipse.collections.api.RichIterable.contains, java.util.Collection.contains, java.util.Set.contains.

Doc from org.eclipse.collections.api.RichIterable.contains.

Returns true if the iterable has an element which responds true to element.equals(object).

Annotations
@Override
eachback to summary
public void each(Procedure<? super Float> procedure)

Implements org.eclipse.collections.api.RichIterable.each.

Doc from org.eclipse.collections.api.RichIterable.each.

The procedure is executed for each element in the iterable.

Example using a Java 8 lambda expression:

people.each(person -> LOGGER.info(person.getName()));
This method is a variant of InternalIterable#forEach(Procedure) that has a signature conflict with Iterable#forEach(java.util.function.Consumer).
Annotations
@Override
equalsback to summary
public boolean equals(Object object)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.set.SetIterable.equals, java.util.Collection.equals, java.util.Set.equals.

Doc from org.eclipse.collections.api.set.SetIterable.equals.

Follows the same general contract as Set#equals(Object).

Annotations
@Override
getFirstback to summary
public Float getFirst()

Implements org.eclipse.collections.api.RichIterable.getFirst.

Doc from org.eclipse.collections.api.RichIterable.getFirst.

Returns the first element of an iterable. In the case of a List it is the element at the first index. In the case of any other Collection, it is the first element that would be returned during an iteration. If the iterable is empty, null is returned. If null is a valid element of the container, then a developer would need to check to see if the iterable is empty to validate that a null result was not due to the container being empty.

The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the first element could be any element from the Set.

Annotations
@Override
getLastback to summary
public Float getLast()

Implements org.eclipse.collections.api.RichIterable.getLast.

Doc from org.eclipse.collections.api.RichIterable.getLast.

Returns the last element of an iterable. In the case of a List it is the element at the last index. In the case of any other Collection, it is the last element that would be returned during an iteration. If the iterable is empty, null is returned. If null is a valid element of the container, then a developer would need to check to see if the iterable is empty to validate that a null result was not due to the container being empty.

The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the last element could be any element from the Set.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.eclipse.collections.api.set.SetIterable.hashCode, java.util.Collection.hashCode, java.util.Set.hashCode.

Doc from org.eclipse.collections.api.set.SetIterable.hashCode.

Follows the same general contract as Set#hashCode().

Annotations
@Override
iteratorback to summary
public Iterator<Float> iterator()

Implements java.lang.Iterable.iterator, java.util.Collection.iterator, java.util.Set.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Annotations
@Override
removeback to summary
public boolean remove(Object object)

Overrides org.eclipse.collections.impl.collection.mutable.AbstractMutableCollection.remove.

Implements java.util.Collection.remove, java.util.Set.remove.

Doc from java.util.Set.remove.

Removes the specified element from this set if it is present (optional operation). More formally, removes an element e such that Objects.equals(o, e), if this set contains such an element. Returns true if this set contained the element (or equivalently, if this set changed as a result of the call). (This set will not contain the element once the call returns.)

Annotations
@Override
sizeback to summary
public int size()

Implements org.eclipse.collections.api.RichIterable.size, java.util.Collection.size, java.util.Set.size.

Doc from org.eclipse.collections.api.RichIterable.size.

Returns the number of items in this iterable.

Annotations
@Override
org.eclipse.collections.impl.set.mutable.primitive back to summary

private final Class BoxedMutableFloatSet.BoxedPrimitiveFloatSetIterator

extends Object
implements Iterator<Float>
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.set.mutable.primitive.BoxedMutableFloatSet.BoxedPrimitiveFloatSetIterator
All Implemented Interfaces
java.util.Iterator

Field Summary

Modifier and TypeField and Description
private final MutableFloatIterator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
hasNext()

Implements java.util.Iterator.hasNext.

Returns true if the iteration has more elements.

public Float
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

delegateback to summary
private final MutableFloatIterator delegate

Constructor Detail

BoxedPrimitiveFloatSetIteratorback to summary
private BoxedPrimitiveFloatSetIterator(MutableFloatIterator iterator)

Method Detail

hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Doc from java.util.Iterator.hasNext.

Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)

Annotations
@Override
nextback to summary
public Float next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Annotations
@Override