Class Array.Float

  • All Implemented Interfaces:
    Array
    Enclosing interface:
    Array

    public static class Array.Float
    extends Object
    implements Array
    Class for wrapping float primitive arrays.
    • Constructor Detail

      • Float

        public Float​(float... values)
    • Method Detail

      • getLength

        public final int getLength()
        Description copied from interface: Array
        Returns the length of the primitive array wrapped.
        Specified by:
        getLength in interface Array
        Returns:
        the lenght of the primitive array wrapped.
      • getValue

        public final double getValue​(int i)
        Description copied from interface: Array
        Returns the ith value of the array wrapped.
        Specified by:
        getValue in interface Array
        Parameters:
        i - the array index.
        Returns:
        the ith value of the array wrapped.
      • copyTo

        public final void copyTo​(int srcPos,
                                 double[] dest,
                                 int destPos,
                                 int length)
        Description copied from interface: Array
        Copies an array from the primitive array wrapped, beginning at the specified position, to the specified position of the destination array.
        Specified by:
        copyTo in interface Array
        Parameters:
        srcPos - starting position in the primitive array wrapped.
        dest - the destination array.
        destPos - starting position in the destination array.
        length - the number of array elements to be copied.