public class Vector_Float 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_Float() |
Vector_Float(int number) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(float value)
add an item
|
void |
clear()
clear the array
|
float |
elementAt(int id)
remove element at
|
float[] |
get()
extract underlying data
|
protected static int |
incrementSize(int increment_size) |
void |
resetToCheckpoint()
used to store end of PDF components
|
void |
reuse()
recycle the array by just resetting the pointer
|
void |
setCheckpoint()
used to rollback array to point
|
void |
trim() |
protected static int incrementSize(int increment_size)
public final float[] get()
public final void addElement(float value)
public final float elementAt(int id)
public final void clear()
public final void reuse()
public void trim()
public void resetToCheckpoint()
public void setCheckpoint()
Copyright © 2017. All rights reserved.