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

public Class FloatArrayList

extends AbstractFloatIterable
implements MutableFloatList, Externalizable
Class Inheritance
All Implemented Interfaces
java.io.Externalizable, java.io.Serializable, org.eclipse.collections.api.list.primitive.MutableFloatList, org.eclipse.collections.api.list.primitive.FloatList, org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterable, org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable, org.eclipse.collections.api.FloatIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableFloatCollection
Imports
java.io.Externalizable, .IOException, .ObjectInput, .ObjectOutput, java.util.Arrays, .Collection, .Iterator, .NoSuchElementException, org.eclipse.collections.api.FloatIterable, .LazyFloatIterable, .RichIterable, org.eclipse.collections.api.block.comparator.primitive.FloatComparator, org.eclipse.collections.api.block.function.primitive.ObjectFloatIntToObjectFunction, .ObjectFloatToObjectFunction, .FloatToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.FloatPredicate, org.eclipse.collections.api.block.procedure.primitive.FloatIntProcedure, .FloatProcedure, org.eclipse.collections.api.collection.primitive.MutableFloatCollection, org.eclipse.collections.api.factory.Lists, org.eclipse.collections.api.iterator.MutableFloatIterator, .FloatIterator, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.list.primitive.FloatList, .ImmutableFloatList, .MutableFloatList, org.eclipse.collections.api.set.primitive.FloatSet, .MutableFloatSet, org.eclipse.collections.api.stack.primitive.MutableFloatStack, org.eclipse.collections.api.tuple.primitive.FloatFloatPair, .FloatObjectPair, org.eclipse.collections.impl.factory.primitive.FloatLists, .FloatStacks, org.eclipse.collections.impl.lazy.primitive.ReverseFloatIterable, org.eclipse.collections.impl.primitive.AbstractFloatIterable, org.eclipse.collections.impl.set.mutable.primitive.FloatHashSet, org.eclipse.collections.impl.tuple.primitive.PrimitiveTuples, org.eclipse.collections.impl.utility.Iterate, org.eclipse.collections.impl.utility.primitive.FloatQuickSort

FloatArrayList is similar to FastList, and is memory-optimized for float primitives. This file was automatically generated from template file primitiveArrayList.stg.
Since
3.0.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private static final float[]
protected transient float[]
private static final int
private static final long
protected int
private static final float[]

Constructor Summary

AccessConstructor and Description
public
public
FloatArrayList(int initialCapacity)

public
FloatArrayList(float... array)

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public boolean
public boolean
public boolean
public void
private void
addAtIndexLessThanSize(int index, float element)

public boolean
allSatisfy(FloatPredicate predicate)

Implements org.eclipse.collections.api.FloatIterable.allSatisfy.

Returns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.

public boolean
anySatisfy(FloatPredicate predicate)

Implements org.eclipse.collections.api.FloatIterable.anySatisfy.

Returns true if any of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.

public void
appendString(Appendable appendable, String start, String separator, String end)

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public LazyFloatIterable
public MutableFloatList
public MutableFloatList
public int
public MutableList<Float>
private void
public RichIterable<FloatIterable>
chunk(int size)

Overrides default org.eclipse.collections.api.FloatIterable.chunk.

Partitions elements in fixed size chunks.

public void
public <V> MutableList<V>
collect(FloatToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.collect, org.eclipse.collections.api.FloatIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public <V, R extends Collection<V>> R
collect(FloatToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.FloatIterable.collect.

Same as collect(FloatToObjectFunction) , only the results are added to the target Collection.

public boolean
contains(float value)

Implements org.eclipse.collections.api.FloatIterable.contains.

Returns true if the value is contained in the FloatIterable, and false if it is not.

private void
copyItems(int sourceSize, float[] source)

private float[]
copyItemsWithNewCapacity(int newCapacity)

public int
count(FloatPredicate predicate)

Implements org.eclipse.collections.api.FloatIterable.count.

Returns a count of the number of elements in the FloatIterable that return true for the specified predicate.

public float
public MutableFloatList
public double
public void
each(FloatProcedure procedure)

Implements org.eclipse.collections.api.FloatIterable.each.

A synonym for forEach.

public void
ensureCapacity(int minCapacity)

private void
public boolean
public MutableFloatIterator
floatIterator()

Implements org.eclipse.collections.api.collection.primitive.MutableFloatCollection.floatIterator, org.eclipse.collections.api.FloatIterable.floatIterator.

Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.

public void
public float
public float
public float
public int
public int
public <T> T
injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.FloatIterable.injectInto.

public <T> T
public int
public float
public float
public FloatArrayList
newEmpty()

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.newEmpty.

Creates a new empty FloatArrayList.

private IndexOutOfBoundsException
public static FloatArrayList
public static FloatArrayList
newListWith(float... elements)

Creates a new list using the passed elements argument as the backing store.

public static FloatArrayList
newWithNValues(int size, float value)

public void
readExternal(ObjectInput in)

Implements java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.

public FloatArrayList
reject(FloatPredicate predicate)

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.reject, org.eclipse.collections.api.FloatIterable.reject.

Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.

public <R extends MutableFloatCollection> R
reject(FloatPredicate predicate, R target)

Overrides default org.eclipse.collections.api.FloatIterable.reject.

Same as reject(FloatPredicate) , only the results are added to the target MutableFloatCollection.

public boolean
public boolean
public boolean
public float
public boolean
public boolean
public boolean
public FloatArrayList
public FloatArrayList
select(FloatPredicate predicate)

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.select, org.eclipse.collections.api.FloatIterable.select.

Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.

public <R extends MutableFloatCollection> R
select(FloatPredicate predicate, R target)

Overrides default org.eclipse.collections.api.FloatIterable.select.

Same as select(FloatPredicate) , only the results are added to the target MutableFloatCollection.

public float
private void
shiftElementsAtIndex(int index, int sourceSize)

public int
size()

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

private int
sizePlusFiftyPercent(int oldSize)

public FloatArrayList
sortThis()

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.sortThis.

Sorts this list mutating its contents and returns the same mutable list (this).

public FloatArrayList
sortThis(FloatComparator comparator)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.sortThis.

Sorts the internal data structure of this list and returns the list itself as a convenience.

public MutableFloatList
public double
public void
private void
throwOutOfBounds(int index)

public float[]
toArray()

Implements org.eclipse.collections.api.FloatIterable.toArray.

Converts the FloatIterable to a primitive float array.

public float[]
toArray(float[] target)

Overrides default org.eclipse.collections.api.FloatIterable.toArray.

Converts the FloatIterable to a primitive float array.

public ImmutableFloatList
toImmutable()

Implements org.eclipse.collections.api.list.primitive.MutableFloatList.toImmutable.

Returns an immutable copy of this list.

public FloatArrayList
public MutableFloatStack
toStack()

Overrides default org.eclipse.collections.api.ordered.primitive.OrderedFloatIterable.toStack.

Converts the collection to a FloatStack.

private void
public void
private void
wipeAndResetTheEnd(int newCurrentFilledIndex)

public FloatArrayList
public FloatArrayList
with(float element1, float element2)

public FloatArrayList
with(float element1, float element2, float element3)

public FloatArrayList
with(float element1, float element2, float element3, float... elements)

public FloatArrayList
private FloatArrayList
withArrayCopy(float[] elements, int begin, int length)

public FloatArrayList
public FloatArrayList
public static FloatArrayList
wrapCopy(float... array)

Creates a new list by first copying the array passed in.

public void
writeExternal(ObjectOutput out)

Implements java.io.Externalizable.writeExternal.

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

public <T> MutableList<FloatObjectPair<T>>
zip(Iterable<T> iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.zip.

Returns a MutableList formed from this MutableFloatList and a ListIterable by combining corresponding elements in pairs.

public MutableList<FloatFloatPair>
zipFloat(FloatIterable iterable)

Overrides default org.eclipse.collections.api.list.primitive.MutableFloatList.zipFloat.

Returns a MutableList formed from this MutableFloatList and another FloatList by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.impl.primitive.AbstractFloatIterable:
asLazyaveragemaxIfEmptymedianminIfEmptytoBagtoListtoSettoSortedArraytoSortedListtoString