Class FloatArray


  • public class FloatArray
    extends Object
    float array
    • Constructor Detail

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

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

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

        public float[] array()