Package org.yamcs.utils
Class FloatArray
- java.lang.Object
-
- org.yamcs.utils.FloatArray
-
public class FloatArray extends Object
float array
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_CAPACITY
-
Constructor Summary
Constructors Constructor Description FloatArray()
Creates a sorted int array with a default initial capacityFloatArray(int capacity)
Creates an IntArray with a given initial capacity
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(float x)
add value to the arrayvoid
add(int pos, float x)
float[]
array()
boolean
equals(Object obj)
float
get(int pos)
get element at positionint
hashCode()
boolean
isEmpty()
void
set(int pos, float x)
int
size()
float[]
toArray()
String
toString()
static FloatArray
wrap(float[] floats)
-
-
-
Field Detail
-
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
add
public void add(float x)
add value to the array- Parameters:
x
- - value to be added
-
add
public void add(int pos, float x)
-
get
public float get(int pos)
get element at position- Parameters:
pos
-- Returns:
-
isEmpty
public boolean isEmpty()
-
toArray
public float[] toArray()
-
size
public int size()
-
set
public void set(int pos, float x)
-
wrap
public static FloatArray wrap(float[] floats)
-
array
public float[] array()
-
-