Class IndexedIntArrayGetter

java.lang.Object
org.simpleflatmapper.reflect.getter.IndexedIntArrayGetter
All Implemented Interfaces:
Getter<int[],Integer>, IntGetter<int[]>

public final class IndexedIntArrayGetter extends Object implements Getter<int[],Integer>, IntGetter<int[]>
  • Constructor Details

    • IndexedIntArrayGetter

      public IndexedIntArrayGetter(int index)
  • Method Details

    • getInt

      public int getInt(int[] target) throws Exception
      Specified by:
      getInt in interface IntGetter<int[]>
      Throws:
      Exception
    • get

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