public class Vector_Double extends Object implements Serializable
Much faster because not synchronized and no cast Does not double in size each time
| Modifier and Type | Field and Description |
|---|---|
protected int |
current_item |
| Constructor and Description |
|---|
Vector_Double(int number) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(double value)
add an item
|
void |
clear()
clear the array
|
double |
elementAt(int id)
remove element at
|
double[] |
get()
extract underlying data
|
protected static int |
incrementSize(int increment_size) |
double |
pull()
pull item from top as in LIFO stack
|
void |
resetToCheckpoint()
used to store end of PDF components
|
void |
setCheckpoint()
used to rollback array to point
|
void |
trim() |
public void resetToCheckpoint()
public void setCheckpoint()
protected static int incrementSize(int increment_size)
public final double[] get()
public final void addElement(double value)
public final double elementAt(int id)
public final void clear()
public final double pull()
public void trim()
Copyright © 2017. All rights reserved.