Class FloatArray

java.lang.Object
org.yamcs.utils.FloatArray

public class FloatArray extends Object
float array
  • Field Details

  • Constructor Details

    • FloatArray

      public FloatArray()
      Creates a sorted int array with a default initial capacity
    • FloatArray

      public FloatArray(int capacity)
      Creates an IntArray with a given initial capacity
      Parameters:
      capacity -
  • Method Details

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • wrap

      public static FloatArray wrap(float[] floats)
    • array

      public float[] array()