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

public Class BoxedMutableFloatList

extends AbstractMutableList<Float>
implements MutableList<Float>, RandomAccess
Class Inheritance
All Implemented Interfaces
java.util.RandomAccess, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.list.ListIterable, org.eclipse.collections.api.ordered.ReversibleIterable, org.eclipse.collections.api.ordered.OrderedIterable, org.eclipse.collections.api.RichIterable, org.eclipse.collections.api.InternalIterable, java.lang.Iterable, java.lang.Cloneable, java.util.List, java.util.SequencedCollection, java.util.Collection, org.eclipse.collections.api.collection.MutableCollection
Imports
java.util.Collection, .Objects, .RandomAccess, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.list.primitive.MutableFloatList, org.eclipse.collections.impl.list.mutable.AbstractMutableList, org.eclipse.collections.impl.utility.Iterate

A boxed view of a MutableFloatList. 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 boxedPrimitiveList.stg.

Since
12.0

Field Summary

Modifier and TypeField and Description
private final MutableFloatList

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.List.add.

Appends the specified element to the end of this list (optional operation).

public void
add(int index, Float element)

Implements java.util.List.add.

Inserts the specified element at the specified position in this list (optional operation).

public boolean
addAll(int index, Collection<? extends Float> c)

Implements java.util.List.addAll.

Inserts all of the elements in the specified collection into this list at the specified position (optional operation).

public void
clear()

Overrides org.eclipse.collections.impl.list.mutable.AbstractMutableList.clear.

Implements java.util.Collection.clear, java.util.List.clear.

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

public Float
get(int index)

Implements java.util.List.get, org.eclipse.collections.api.list.ListIterable.get.

Returns the element at the specified position in this list.

public int
indexOf(Object o)

Overrides org.eclipse.collections.impl.list.mutable.AbstractMutableList.indexOf.

Overrides default org.eclipse.collections.api.list.MutableList.indexOf.

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element.

public int
lastIndexOf(Object o)

Overrides org.eclipse.collections.impl.list.mutable.AbstractMutableList.lastIndexOf.

Implements java.util.List.lastIndexOf, org.eclipse.collections.api.list.ListIterable.lastIndexOf.

Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element.

public Float
remove(int index)

Implements java.util.List.remove.

Removes the element at the specified position in this list (optional operation).

public Float
set(int index, Float element)

Implements java.util.List.set.

Replaces the element at the specified position in this list with the specified element (optional operation).

public int
size()

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

Returns the number of elements in this list.

public MutableList<Float>
subList(int fromIndex, int toIndex)

Overrides org.eclipse.collections.impl.list.mutable.AbstractMutableList.subList.

Implements org.eclipse.collections.api.list.MutableList.subList.

Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive.

Inherited from org.eclipse.collections.impl.list.mutable.AbstractMutableList:
allSatisfyallSatisfyWithanySatisfyanySatisfyWithappendStringappendStringasParallelasReversedasSynchronizedasUnmodifiablebinarySearchchunkclonecollectcollectIfcollectWithcontainscontainsAllcorrespondscountcountWithdetectdetectIndexdetectLastIndexdetectOptionaldetectWithdetectWithOptionaldistinctdistinctdistinctBydropdropWhileeachequalsflatCollectforEachforEachWithforEachWithIndexforEachWithIndexgetFirstgetLastgroupBygroupByEachgroupByUniqueKeyhashCodeinjectIntoinjectIntoinjectIntoinjectIntoinjectIntoWithiteratorlistIteratorlistIteratormaxmaxmaxByminminminBynewEmptynoneSatisfynoneSatisfyWithpartitionpartitionWhilepartitionWithrejectrejectWithremoveAllremoveIfremoveIfWithremoveRangeretainAllselectselectAndRejectWithselectInstancesOfselectWithsortThisByBooleansortThisByBytesortThisByCharsortThisByDoublesortThisByFloatsortThisByIntsortThisByLongsortThisByShortsumOfDoublesumOfFloatsumOfIntsumOfLongtaketakeWhiletaptoSettoSortedListzipzipzipWithIndexzipWithIndex

Field Detail

delegateback to summary
private final MutableFloatList delegate

Constructor Detail

BoxedMutableFloatListback to summary
public BoxedMutableFloatList(MutableFloatList 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.List.add.

Doc from java.util.List.add.

Appends the specified element to the end of this list (optional operation).

Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.

Annotations
@Override
addback to summary
public void add(int index, Float element)

Implements java.util.List.add.

Doc from java.util.List.add.

Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Annotations
@Override
addAllback to summary
public boolean addAll(int index, Collection<? extends Float> c)

Implements java.util.List.addAll.

Doc from java.util.List.addAll.

Inserts all of the elements in the specified collection into this list at the specified position (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in this list in the order that they are returned by the specified collection's iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)

Annotations
@Override
clearback to summary
public void clear()

Overrides org.eclipse.collections.impl.list.mutable.AbstractMutableList.clear.

Implements java.util.Collection.clear, java.util.List.clear.

Doc from java.util.List.clear.

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

Annotations
@Override
getback to summary
public Float get(int index)

Implements java.util.List.get, org.eclipse.collections.api.list.ListIterable.get.

Doc from java.util.List.get.

Returns the element at the specified position in this list.

Annotations
@Override
indexOfback to summary
public int indexOf(Object o)

Overrides org.eclipse.collections.impl.list.mutable.AbstractMutableList.indexOf.

Overrides default org.eclipse.collections.api.list.MutableList.indexOf.

Doc from java.util.List.indexOf.

Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. More formally, returns the lowest index i such that Objects.equals(o, get(i)), or -1 if there is no such index.

Annotations
@Override
lastIndexOfback to summary
public int lastIndexOf(Object o)

Overrides org.eclipse.collections.impl.list.mutable.AbstractMutableList.lastIndexOf.

Implements java.util.List.lastIndexOf, org.eclipse.collections.api.list.ListIterable.lastIndexOf.

Doc from java.util.List.lastIndexOf.

Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. More formally, returns the highest index i such that Objects.equals(o, get(i)), or -1 if there is no such index.

Annotations
@Override
removeback to summary
public Float remove(int index)

Implements java.util.List.remove.

Doc from java.util.List.remove.

Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.

Annotations
@Override
setback to summary
public Float set(int index, Float element)

Implements java.util.List.set.

Doc from java.util.List.set.

Replaces the element at the specified position in this list with the specified element (optional operation).

Annotations
@Override
sizeback to summary
public int size()

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

Doc from java.util.List.size.

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Annotations
@Override
subListback to summary
public MutableList<Float> subList(int fromIndex, int toIndex)

Overrides org.eclipse.collections.impl.list.mutable.AbstractMutableList.subList.

Implements org.eclipse.collections.api.list.MutableList.subList.

Doc from java.util.List.subList.

Returns a view of the portion of this list between the specified fromIndex, inclusive, and toIndex, exclusive. (If fromIndex and toIndex are equal, the returned list is empty.) The returned list is backed by this list, so non-structural changes in the returned list are reflected in this list, and vice-versa. The returned list supports all of the optional list operations supported by this list.

This method eliminates the need for explicit range operations (of the sort that commonly exist for arrays). Any operation that expects a list can be used as a range operation by passing a subList view instead of a whole list. For example, the following idiom removes a range of elements from a list:

list.subList(from, to).clear();
Similar idioms may be constructed for indexOf and lastIndexOf, and all of the algorithms in the Collections class can be applied to a subList.

The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is structurally modified in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.)

Annotations
@Override