Class IndexedByteArraySetter

java.lang.Object
org.simpleflatmapper.reflect.setter.IndexedByteArraySetter
All Implemented Interfaces:
ByteSetter<byte[]>, Setter<byte[],Byte>

public final class IndexedByteArraySetter extends Object implements Setter<byte[],Byte>, ByteSetter<byte[]>
  • Constructor Details

    • IndexedByteArraySetter

      public IndexedByteArraySetter(int index)
  • Method Details

    • setByte

      public void setByte(byte[] target, byte value) throws Exception
      Specified by:
      setByte in interface ByteSetter<byte[]>
      Throws:
      Exception
    • set

      public void set(byte[] target, Byte value) throws Exception
      Description copied from interface: Setter
      Set the properties on the target object to value.
      Specified by:
      set in interface Setter<byte[],Byte>
      Parameters:
      target - the target to set the value on
      value - the value to set
      Throws:
      Exception - if anything goes wrong