public class FastDoubleArrayList
extends java.lang.Object
implements java.lang.Cloneable, java.util.RandomAccess, java.io.Serializable
FastArrayList for the double primitive data type.| Modifier and Type | Field | Description |
|---|---|---|
static int |
DEFAULT_INITIAL_CAPACITY |
| Constructor | Description |
|---|---|
FastDoubleArrayList() |
|
FastDoubleArrayList(double[] src) |
|
FastDoubleArrayList(int initialCapacity) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
add(double value) |
|
void |
add(int index,
double element) |
|
boolean |
addAll(double[] a) |
|
boolean |
addAll(FastDoubleArrayList c) |
|
boolean |
addAll(int index,
double[] a) |
|
boolean |
addAll(int index,
FastDoubleArrayList c) |
|
void |
clear() |
|
FastDoubleArrayList |
clone() |
|
boolean |
contains(double v) |
|
void |
ensureCapacity(int min) |
|
boolean |
equals(java.lang.Object o) |
|
double |
get(int index) |
|
int |
hashCode() |
Double.hashCode(): (int)(bits ^ (bits >>> 32))
|
int |
indexOf(double v) |
|
boolean |
isEmpty() |
|
int |
lastIndexOf(double v) |
|
double |
remove(int index) |
|
boolean |
removeElement(double value) |
|
double |
set(int index,
double value) |
|
int |
size() |
|
double[] |
toArray() |
|
java.lang.String |
toString() |
|
void |
trimToSize() |
public static final int DEFAULT_INITIAL_CAPACITY
public FastDoubleArrayList()
public FastDoubleArrayList(int initialCapacity)
public FastDoubleArrayList(double[] src)
public void trimToSize()
public void ensureCapacity(int min)
public int size()
public boolean isEmpty()
public boolean contains(double v)
public int indexOf(double v)
public int lastIndexOf(double v)
public FastDoubleArrayList clone() throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic double[] toArray()
public double get(int index)
public double set(int index,
double value)
public boolean add(double value)
public void add(int index,
double element)
public double remove(int index)
public boolean removeElement(double value)
public void clear()
public boolean addAll(double[] a)
public boolean addAll(int index,
double[] a)
public boolean addAll(FastDoubleArrayList c)
public boolean addAll(int index,
FastDoubleArrayList c)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2009 Javolution.