public class FloatList
extends java.util.AbstractList<java.lang.Float>
Has sum, mean, median, standardDeviation, reduceBy, variance.
| Constructor and Description |
|---|
FloatList()
Create a new list with exactly 10 items in it.
|
FloatList(float[] values)
Create a new list with this many items in it.
|
FloatList(int capacity)
Create a new list with this many items in it.
|
| Modifier and Type | Method and Description |
|---|---|
FloatList |
add(float integer)
Add a new value to the list but don't employ a wrapper.
|
boolean |
add(java.lang.Float integer)
Add a new value to the list.
|
boolean |
addArray(float... integers)
Add a new array to the list.
|
boolean |
addFloat(float value)
Add a new value to the list but don't employ a wrapper.
|
float |
atIndex(int index)
Get the value at index
|
float |
atIndex(int index,
float element)
Set a value in the list.
|
void |
clear() |
boolean |
equals(java.lang.Object o) |
java.lang.Float |
get(int index)
Get the value at index
|
float |
getFloat(int index)
Get the value at index but don't use a wrapper
|
int |
hashCode() |
float |
idx(int index)
Get the value at index
|
float |
idx(int index,
float element)
Set a value in the list.
|
float |
max()
max
|
float |
mean()
Mean
|
float |
median()
median
|
float |
min()
min
|
double |
reduceBy(Flt.ReduceBy reduceBy) |
double |
reduceBy(java.lang.Object function)
This would be a good opportunity to reintroduce dynamic invoke
|
double |
reduceBy(java.lang.Object function,
java.lang.String name)
This would be a good opportunity to reintroduce dynamic invoke
|
java.lang.Float |
set(int index,
java.lang.Float element)
Set a value in the list.
|
float |
setFloat(int index,
float element)
Set in a new value no wrapper
|
int |
size()
Return the current size.
|
void |
sort()
sort
|
float |
standardDeviation()
standardDeviation
|
float |
sum()
Sums the values with bounds checking.
|
static FloatList |
toFloatList(java.util.Collection<?> inputList,
java.lang.String propertyPath)
Creates a primitive list based on an input list and a property path
|
float[] |
toValueArray()
Get a copy of the array up to the end element.
|
float |
variance()
variance
|
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringpublic FloatList(int capacity)
public FloatList()
public FloatList(float[] values)
public static FloatList toFloatList(java.util.Collection<?> inputList, java.lang.String propertyPath)
inputList - input listpropertyPath - property pathpublic java.lang.Float get(int index)
get in interface java.util.List<java.lang.Float>get in class java.util.AbstractList<java.lang.Float>index - indexpublic float idx(int index)
index - indexpublic float atIndex(int index)
index - indexpublic final float getFloat(int index)
index - indexpublic boolean add(java.lang.Float integer)
add in interface java.util.Collection<java.lang.Float>add in interface java.util.List<java.lang.Float>add in class java.util.AbstractList<java.lang.Float>integer - new valuepublic boolean addFloat(float value)
value - new valuepublic FloatList add(float integer)
integer - new valuepublic boolean addArray(float... integers)
public java.lang.Float set(int index,
java.lang.Float element)
set in interface java.util.List<java.lang.Float>set in class java.util.AbstractList<java.lang.Float>index - indexelement - new valuepublic float idx(int index,
float element)
index - indexelement - new valuepublic float atIndex(int index,
float element)
index - indexelement - new valuepublic float setFloat(int index,
float element)
index - indexelement - new valuepublic int size()
size in interface java.util.Collection<java.lang.Float>size in interface java.util.List<java.lang.Float>size in class java.util.AbstractCollection<java.lang.Float>public float sum()
public float[] toValueArray()
public double reduceBy(java.lang.Object function)
function - functionpublic double reduceBy(java.lang.Object function,
java.lang.String name)
function - functionpublic double reduceBy(Flt.ReduceBy reduceBy)
reduceBy - reduceBy functionpublic float mean()
public float standardDeviation()
public float variance()
public float max()
public float min()
public float median()
public void sort()
public boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Float>equals in interface java.util.List<java.lang.Float>equals in class java.util.AbstractList<java.lang.Float>public int hashCode()
hashCode in interface java.util.Collection<java.lang.Float>hashCode in interface java.util.List<java.lang.Float>hashCode in class java.util.AbstractList<java.lang.Float>public void clear()
clear in interface java.util.Collection<java.lang.Float>clear in interface java.util.List<java.lang.Float>clear in class java.util.AbstractList<java.lang.Float>Copyright © 2014. All Rights Reserved.