public class FloatArray extends AbstractPrimitiveArray<float[],Float>
float elements.modCount| Constructor and Description |
|---|
FloatArray()
Constructs an extensible array of floats, backed by a fixed-size array.
|
FloatArray(float[] array)
Constructs an extensible array of floats, backed by the given fixed-size
array.
|
FloatArray(int size)
Constructs an extensible array of floats, backed by a fixed-size array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Float element) |
boolean |
addAll(int index,
Collection<? extends Float> c) |
void |
addValue(float value) |
void |
addValue(int index,
float value) |
boolean |
contains(float value) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Float |
defaultValue() |
Float |
get(int index) |
float[] |
getArray()
Gets the fixed-size array backing this instance.
|
float |
getValue(int index) |
int |
indexOf(float value) |
int |
indexOf(Object o) |
int |
lastIndexOf(float value) |
int |
lastIndexOf(Object o) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeValue(float value) |
Float |
set(int index,
Float element) |
void |
setArray(float[] array)
Sets the fixed-size array backing this instance.
|
float |
setValue(int index,
float value) |
capacity, checkBounds, clear, copyArray, delete, ensureCapacity, getMaximumGrowth, insert, remove, setMaximumGrowth, setSize, sizeadd, equals, hashCode, iterator, listIterator, listIterator, removeRange, subListaddAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, equals, hashCode, isEmpty, iterator, listIterator, listIterator, replaceAll, retainAll, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic FloatArray()
public FloatArray(int size)
size - the initial sizepublic FloatArray(float[] array)
array - the array to wrappublic void addValue(float value)
public boolean removeValue(float value)
public float getValue(int index)
public float setValue(int index,
float value)
public void addValue(int index,
float value)
public int indexOf(float value)
public int lastIndexOf(float value)
public boolean contains(float value)
public float[] getArray()
PrimitiveArraypublic void setArray(float[] array)
PrimitiveArrayarray - the new backing arraypublic Float get(int index)
public void add(int index,
Float element)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<Float>lastIndexOf in class AbstractList<Float>public boolean contains(Object o)
contains in interface Collection<Float>contains in interface List<Float>contains in class AbstractCollection<Float>public boolean remove(Object o)
remove in interface Collection<Float>remove in interface List<Float>remove in class AbstractCollection<Float>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Float>containsAll in interface List<Float>containsAll in class AbstractCollection<Float>public boolean addAll(int index,
Collection<? extends Float> c)
public boolean removeAll(Collection<?> c)
removeAll in interface Collection<Float>removeAll in interface List<Float>removeAll in class AbstractCollection<Float>public Float defaultValue()
Copyright © 2009–2016 SciJava. All rights reserved.