Class Array.Float

java.lang.Object
org.esa.snap.core.util.math.Array.Float
All Implemented Interfaces:
Array
Enclosing interface:
Array

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

    Nested classes/interfaces inherited from interface org.esa.snap.core.util.math.Array

    Array.Double, Array.Float
  • Constructor Summary

    Constructors
    Constructor
    Description
    Float(float... values)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    copyTo(int srcPos, double[] dest, int destPos, int length)
    Copies an array from the primitive array wrapped, beginning at the specified position, to the specified position of the destination array.
    final int
    Returns the length of the primitive array wrapped.
    final double
    getValue(int i)
    Returns the ith value of the array wrapped.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Float

      public Float(float... values)
  • Method Details

    • 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.