Class IndexedDoubleArrayGetter

java.lang.Object
org.simpleflatmapper.reflect.getter.IndexedDoubleArrayGetter
All Implemented Interfaces:
Getter<double[],Double>, DoubleGetter<double[]>

public final class IndexedDoubleArrayGetter extends Object implements Getter<double[],Double>, DoubleGetter<double[]>
  • Constructor Details

    • IndexedDoubleArrayGetter

      public IndexedDoubleArrayGetter(int index)
  • Method Details

    • getDouble

      public double getDouble(double[] target) throws Exception
      Specified by:
      getDouble in interface DoubleGetter<double[]>
      Throws:
      Exception
    • get

      public Double get(double[] target) throws Exception
      Description copied from interface: Getter
      Return the property from the specified object.
      Specified by:
      get in interface Getter<double[],Double>
      Parameters:
      target - the object to get the property from
      Returns:
      the property
      Throws:
      Exception - if anything goes wrong