public class FloatArray extends Object
| Constructor and Description |
|---|
FloatArray()
constructor using
DEFAULT_SEGMENTATION and DEFAULT_CAPACITY. |
FloatArray(int segmentation,
int capacity)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(float newNumber)
adds a new element to the segmentation array
|
void |
clear() |
float |
get(int index)
gets the value at the given array index
|
int |
size()
size
|
float[] |
toArray()
creates one new primitive array holding all stored elements
|
public FloatArray()
DEFAULT_SEGMENTATION and DEFAULT_CAPACITY.public FloatArray(int segmentation,
int capacity)
segmentation - segmentation-array sizecapacity - segmentation holder sizepublic float get(int index)
index - array indexpublic void add(float newNumber)
newNumber - new elementpublic int size()
public void clear()
public float[] toArray()
Copyright © 2012–2018. All rights reserved.