Class IndexedLongArrayGetter

java.lang.Object
org.simpleflatmapper.reflect.getter.IndexedLongArrayGetter
All Implemented Interfaces:
Getter<long[],Long>, LongGetter<long[]>

public final class IndexedLongArrayGetter extends Object implements Getter<long[],Long>, LongGetter<long[]>
  • Constructor Details

    • IndexedLongArrayGetter

      public IndexedLongArrayGetter(int index)
  • Method Details

    • getLong

      public long getLong(long[] target) throws Exception
      Specified by:
      getLong in interface LongGetter<long[]>
      Throws:
      Exception
    • get

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