org.esa.beam.util.math
Class Array.Double

java.lang.Object
  extended by org.esa.beam.util.math.Array.Double
All Implemented Interfaces:
Array
Enclosing interface:
Array

public static class Array.Double
extends Object
implements Array

Class for wrapping double primitive arrays.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.esa.beam.util.math.Array
Array.Double, Array.Float
 
Constructor Summary
Array.Double(double... values)
           
 
Method Summary
 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.
 int getLength()
          Returns the length of the primitive array wrapped.
 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 Detail

Array.Double

public Array.Double(double... 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.


Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.