@NotThreadSafe public class FloatArrayList extends AbstractFloatIterable implements org.eclipse.collections.api.list.primitive.MutableFloatList, Externalizable
FastList, and is memory-optimized for float primitives.
This file was automatically generated from template file primitiveArrayList.stg.| Constructor and Description |
|---|
FloatArrayList() |
FloatArrayList(float... array) |
FloatArrayList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(float newItem) |
boolean |
addAll(float... source) |
boolean |
addAll(org.eclipse.collections.api.FloatIterable source) |
boolean |
addAllAtIndex(int index,
float... source) |
boolean |
addAllAtIndex(int index,
org.eclipse.collections.api.FloatIterable source) |
void |
addAtIndex(int index,
float element) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.LazyFloatIterable |
asReversed() |
org.eclipse.collections.api.list.primitive.MutableFloatList |
asSynchronized() |
org.eclipse.collections.api.list.primitive.MutableFloatList |
asUnmodifiable() |
int |
binarySearch(float value) |
void |
clear() |
<V> org.eclipse.collections.api.list.MutableList<V> |
collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function) |
boolean |
contains(float value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
float |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone) |
org.eclipse.collections.api.list.primitive.MutableFloatList |
distinct() |
double |
dotProduct(org.eclipse.collections.api.list.primitive.FloatList list) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
void |
ensureCapacity(int minCapacity) |
boolean |
equals(Object otherList) |
org.eclipse.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.FloatIntProcedure procedure) |
float |
get(int index) |
float |
getFirst() |
float |
getLast() |
int |
hashCode() |
int |
indexOf(float value) |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super T,? extends T> function) |
<T> T |
injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(float value) |
float |
max() |
float |
min() |
static FloatArrayList |
newList(org.eclipse.collections.api.FloatIterable source) |
static FloatArrayList |
newListWith(float... elements)
Creates a new list using the passed
elements argument as the backing store. |
static FloatArrayList |
newWithNValues(int size,
float value) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
void |
readExternal(ObjectInput in) |
FloatArrayList |
reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
remove(float value) |
boolean |
removeAll(float... source) |
boolean |
removeAll(org.eclipse.collections.api.FloatIterable source) |
float |
removeAtIndex(int index) |
boolean |
retainAll(float... source) |
boolean |
retainAll(org.eclipse.collections.api.FloatIterable source) |
FloatArrayList |
reverseThis() |
FloatArrayList |
select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
float |
set(int index,
float element) |
int |
size() |
FloatArrayList |
sortThis() |
org.eclipse.collections.api.list.primitive.MutableFloatList |
subList(int fromIndex,
int toIndex) |
double |
sum() |
float[] |
toArray() |
org.eclipse.collections.api.list.primitive.ImmutableFloatList |
toImmutable() |
FloatArrayList |
toReversed() |
void |
trimToSize() |
FloatArrayList |
with(float element) |
FloatArrayList |
with(float element1,
float element2) |
FloatArrayList |
with(float element1,
float element2,
float element3) |
FloatArrayList |
with(float element1,
float element2,
float element3,
float... elements) |
FloatArrayList |
withAll(org.eclipse.collections.api.FloatIterable elements) |
FloatArrayList |
without(float element) |
FloatArrayList |
withoutAll(org.eclipse.collections.api.FloatIterable elements) |
void |
writeExternal(ObjectOutput out) |
appendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic FloatArrayList()
public FloatArrayList(int initialCapacity)
public FloatArrayList(float... array)
public static FloatArrayList newListWith(float... elements)
elements argument as the backing store.
!!! WARNING: This method uses the passed in array, so can be very unsafe if the original array is held onto anywhere else. !!!
public static FloatArrayList newList(org.eclipse.collections.api.FloatIterable source)
public static FloatArrayList newWithNValues(int size, float value)
public int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean contains(float value)
contains in interface org.eclipse.collections.api.FloatIterablepublic float get(int index)
get in interface org.eclipse.collections.api.list.primitive.FloatListpublic float getFirst()
getFirst in interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterablepublic float getLast()
getLast in interface org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterablepublic int indexOf(float value)
indexOf in interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterablepublic int lastIndexOf(float value)
lastIndexOf in interface org.eclipse.collections.api.list.primitive.FloatListpublic void trimToSize()
public void ensureCapacity(int minCapacity)
public boolean add(float newItem)
add in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean addAll(float... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean addAll(org.eclipse.collections.api.FloatIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic void addAtIndex(int index,
float element)
addAtIndex in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic boolean addAllAtIndex(int index,
float... source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic boolean addAllAtIndex(int index,
org.eclipse.collections.api.FloatIterable source)
addAllAtIndex in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic boolean remove(float value)
remove in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean removeAll(org.eclipse.collections.api.FloatIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean removeAll(float... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean retainAll(org.eclipse.collections.api.FloatIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean retainAll(float... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic float removeAtIndex(int index)
removeAtIndex in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic float set(int index,
float element)
set in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic FloatArrayList with(float element)
with in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionwith in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic FloatArrayList without(float element)
without in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionwithout in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic FloatArrayList withAll(org.eclipse.collections.api.FloatIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionwithAll in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic FloatArrayList withoutAll(org.eclipse.collections.api.FloatIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionwithoutAll in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic 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 org.eclipse.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionfloatIterator in interface org.eclipse.collections.api.FloatIterablepublic void forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEach in interface org.eclipse.collections.api.FloatIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
each in interface org.eclipse.collections.api.FloatIterablepublic void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.FloatIntProcedure procedure)
forEachWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterablepublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.FloatIterablepublic <T> T injectIntoWithIndex(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterableinjectIntoWithIndex in interface org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
count in interface org.eclipse.collections.api.FloatIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.FloatIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.FloatIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.FloatIterablepublic FloatArrayList select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionselect in interface org.eclipse.collections.api.FloatIterableselect in interface org.eclipse.collections.api.list.primitive.FloatListselect in interface org.eclipse.collections.api.list.primitive.MutableFloatListselect in interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterableselect in interface org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterablepublic FloatArrayList reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionreject in interface org.eclipse.collections.api.FloatIterablereject in interface org.eclipse.collections.api.list.primitive.FloatListreject in interface org.eclipse.collections.api.list.primitive.MutableFloatListreject in interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterablereject in interface org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterablepublic float detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone)
detectIfNone in interface org.eclipse.collections.api.FloatIterablepublic <V> org.eclipse.collections.api.list.MutableList<V> collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectioncollect in interface org.eclipse.collections.api.FloatIterablecollect in interface org.eclipse.collections.api.list.primitive.FloatListcollect in interface org.eclipse.collections.api.list.primitive.MutableFloatListcollect in interface org.eclipse.collections.api.ordered.primitive.OrderedFloatIterablecollect in interface org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterablepublic float max()
max in interface org.eclipse.collections.api.FloatIterablepublic float min()
min in interface org.eclipse.collections.api.FloatIterablepublic double sum()
sum in interface org.eclipse.collections.api.FloatIterablepublic double dotProduct(org.eclipse.collections.api.list.primitive.FloatList list)
dotProduct in interface org.eclipse.collections.api.list.primitive.FloatListpublic float[] toArray()
toArray in interface org.eclipse.collections.api.FloatIterablepublic boolean equals(Object otherList)
public int hashCode()
public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic org.eclipse.collections.api.list.primitive.MutableFloatList asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionasUnmodifiable in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic org.eclipse.collections.api.list.primitive.MutableFloatList asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionasSynchronized in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic org.eclipse.collections.api.list.primitive.ImmutableFloatList toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectiontoImmutable in interface org.eclipse.collections.api.list.primitive.FloatListtoImmutable in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic org.eclipse.collections.api.LazyFloatIterable asReversed()
asReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterablepublic FloatArrayList reverseThis()
reverseThis in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic FloatArrayList sortThis()
sortThis in interface org.eclipse.collections.api.list.primitive.MutableFloatListpublic FloatArrayList toReversed()
toReversed in interface org.eclipse.collections.api.list.primitive.FloatListtoReversed in interface org.eclipse.collections.api.list.primitive.MutableFloatListtoReversed in interface org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterablepublic int binarySearch(float value)
binarySearch in interface org.eclipse.collections.api.list.primitive.FloatListpublic org.eclipse.collections.api.list.primitive.MutableFloatList distinct()
distinct in interface org.eclipse.collections.api.list.primitive.FloatListdistinct in interface org.eclipse.collections.api.list.primitive.MutableFloatListdistinct in interface org.eclipse.collections.api.ordered.primitive.ReversibleFloatIterablepublic org.eclipse.collections.api.list.primitive.MutableFloatList subList(int fromIndex,
int toIndex)
subList in interface org.eclipse.collections.api.list.primitive.FloatListsubList in interface org.eclipse.collections.api.list.primitive.MutableFloatListCopyright © 2004–2018. All rights reserved.