public class DoubleArrayList extends java.lang.Object implements java.util.RandomAccess, java.lang.Cloneable, java.io.Serializable, DoubleIterable
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_GROW_FACTOR |
static int |
DEFAULT_INITIAL_CAPACITY |
Constructor and Description |
---|
DoubleArrayList() |
DoubleArrayList(double[] a) |
DoubleArrayList(double[] a,
int offset,
int length) |
DoubleArrayList(int capacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(double k) |
void |
add(int index,
double k) |
boolean |
addAll(java.util.Collection c) |
boolean |
addAll(int index,
java.util.Collection c) |
boolean |
addAll(int index,
DoubleArrayList c) |
void |
addElements(int index,
double[] a,
int offset,
int length) |
int |
capacity() |
void |
clear() |
DoubleArrayList |
clone() |
int |
compareTo(DoubleArrayList l) |
boolean |
contains(double k) |
double[] |
elements() |
static double[] |
ensureCapacity(double[] array,
int length,
int preserve) |
void |
ensureCapacity(int capacity) |
boolean |
equals(DoubleArrayList l) |
double |
getDouble(int index) |
void |
getElements(int from,
double[] a,
int offset,
int length) |
float |
getGrowFactor() |
static double[] |
grow(double[] array,
int length,
int preserve,
float growFactor) |
int |
indexOf(double k) |
boolean |
isEmpty() |
DoubleIterator |
iterator() |
int |
lastIndexOf(double k) |
boolean |
rem(double k) |
boolean |
removeAll(java.util.Collection c) |
boolean |
removeAll(DoubleArrayList c) |
double |
removeByIndex(int index) |
void |
removeElements(int from,
int to) |
double |
set(int index,
double k) |
void |
setGrowFactor(float growFactor) |
int |
size() |
void |
size(int size) |
double[] |
toArray(double[] a) |
void |
trim() |
void |
trim(int n) |
void |
trimToSize() |
static DoubleArrayList |
wrap(double[] a) |
static DoubleArrayList |
wrap(double[] a,
int length) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, forEach
public static final int DEFAULT_INITIAL_CAPACITY
public static final float DEFAULT_GROW_FACTOR
public DoubleArrayList(int capacity)
public DoubleArrayList()
public DoubleArrayList(double[] a)
public DoubleArrayList(double[] a, int offset, int length)
public double[] elements()
public static DoubleArrayList wrap(double[] a, int length)
public static DoubleArrayList wrap(double[] a)
public void ensureCapacity(int capacity)
public float getGrowFactor()
public void setGrowFactor(float growFactor)
public void add(int index, double k)
public boolean add(double k)
public double getDouble(int index)
public int indexOf(double k)
public int lastIndexOf(double k)
public double removeByIndex(int index)
public boolean rem(double k)
public double set(int index, double k)
public void clear()
public int size()
public int capacity()
public void size(int size)
public boolean isEmpty()
public void trim()
public void trim(int n)
public void getElements(int from, double[] a, int offset, int length)
public void removeElements(int from, int to)
public void addElements(int index, double[] a, int offset, int length)
public double[] toArray(double[] a)
public boolean addAll(int index, DoubleArrayList c)
public boolean addAll(int index, java.util.Collection c)
public boolean addAll(java.util.Collection c)
public boolean removeAll(DoubleArrayList c)
public boolean removeAll(java.util.Collection c)
public DoubleArrayList clone()
clone
in class java.lang.Object
public boolean equals(DoubleArrayList l)
public int compareTo(DoubleArrayList l)
public boolean contains(double k)
public DoubleIterator iterator()
iterator
in interface DoubleIterable
iterator
in interface java.lang.Iterable
public static double[] ensureCapacity(double[] array, int length, int preserve)
public static double[] grow(double[] array, int length, int preserve, float growFactor)
public void trimToSize()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.