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 intDEFAULT_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 voidadd(float x)add value to the arrayvoidadd(int pos, float x)float[]array()booleanequals(Object obj)floatget(int pos)get element at positioninthashCode()booleanisEmpty()voidset(int pos, float x)intsize()float[]toArray()StringtoString()static FloatArraywrap(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()
-
-