Class IndexedByteArrayGetter

java.lang.Object
org.simpleflatmapper.reflect.getter.IndexedByteArrayGetter
All Implemented Interfaces:
Getter<byte[],Byte>, ByteGetter<byte[]>

public final class IndexedByteArrayGetter extends Object implements Getter<byte[],Byte>, ByteGetter<byte[]>
  • Constructor Details

    • IndexedByteArrayGetter

      public IndexedByteArrayGetter(int index)
  • Method Details

    • getByte

      public byte getByte(byte[] target) throws Exception
      Specified by:
      getByte in interface ByteGetter<byte[]>
      Throws:
      Exception
    • get

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