public class FloatArrayList
extends java.lang.Object
FastFloatBuffer.| Modifier and Type | Field and Description |
|---|---|
static int |
initialCapacity |
| Constructor and Description |
|---|
FloatArrayList()
Constructs an empty list with an initial capacity.
|
FloatArrayList(float[] data)
Constructs a list containing the elements of the specified array.
|
FloatArrayList(int initialCapacity)
Constructs an empty list with the specified initial capacity.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(float element)
Appends the specified element to the end of this list.
|
void |
add(int index,
float element)
Inserts the specified element at the specified position in this list.
|
void |
addAll(float[] data)
Appends all of the elements in the specified array to the end of this list.
|
void |
addAll(int index,
float[] data)
Appends all of the elements in the specified array at the specified position in this list.
|
void |
clear()
Removes all of the elements from this list.
|
boolean |
contains(float data,
float delta)
Returns true if this list contains the specified element.
|
void |
ensureCapacity(int mincap)
Increases the capacity of this ArrayList instance, if necessary,
to ensure that it can hold at least the number of elements specified by
the minimum capacity argument.
|
float |
get(int index)
Returns the element at the specified position in this list.
|
int |
indexOf(float data,
float delta)
Searches for the first occurrence of the given argument.
|
boolean |
isEmpty()
Tests if this list has no elements.
|
int |
lastIndexOf(float data,
float delta)
Returns the index of the last occurrence of the specified object in this list.
|
float |
remove(int index)
Removes the element at the specified position in this list.
|
void |
removeRange(int fromIndex,
int toIndex)
Removes from this list all of the elements whose index is between fromIndex,
inclusive and toIndex, exclusive.
|
float |
set(int index,
float element)
Replaces the element at the specified position in this list with the specified element.
|
int |
size()
Returns the number of elements in this list.
|
float[] |
toArray()
Returns an array containing all of the elements in this list in the correct order.
|
void |
trimToSize()
Trims the capacity of this instance to be the list's current size.
|
public FloatArrayList()
public FloatArrayList(int initialCapacity)
public FloatArrayList(float[] data)
public float[] toArray()
public float get(int index)
public int size()
public float remove(int index)
index - the index of the element to removejava.lang.UnsupportedOperationException - when this operation is not
supportedjava.lang.IndexOutOfBoundsException - if the specified index is out of rangepublic void removeRange(int fromIndex,
int toIndex)
public float set(int index,
float element)
index - the index of the element to changeelement - the value to be stored at the specified positionpublic void add(float element)
public void add(int index,
float element)
index - the index at which to insert the elementelement - the value to insertpublic void addAll(float[] data)
public void addAll(int index,
float[] data)
public void clear()
public boolean contains(float data,
float delta)
public int indexOf(float data,
float delta)
public int lastIndexOf(float data,
float delta)
public boolean isEmpty()
public void ensureCapacity(int mincap)
public void trimToSize()
Copyright © 2003-2013 Jodd Team