Class CustomSetterValue<T>

java.lang.Object
com.illumon.iris.importers.CustomSetterValue<T>
Type Parameters:
T - The type of object that is being held
All Implemented Interfaces:
RowSetter<T>

public final class CustomSetterValue<T> extends Object implements RowSetter<T>
The class is an implementation of RowSetter that in addition exposes the get methods to access the data value
  • Constructor Details

    • CustomSetterValue

      public CustomSetterValue()
  • Method Details

    • isBooleanValue

      public boolean isBooleanValue()
    • getByteValue

      public byte getByteValue()
    • getCharValue

      public char getCharValue()
    • getShortValue

      public short getShortValue()
    • getIntValue

      public int getIntValue()
    • getFloatValue

      public float getFloatValue()
    • getDoubleValue

      public double getDoubleValue()
    • getLongValue

      public long getLongValue()
    • getValue

      public T getValue()
    • set

      public void set(T value)
      Specified by:
      set in interface RowSetter<T>
    • setBoolean

      public void setBoolean(Boolean value)
      Specified by:
      setBoolean in interface RowSetter<T>
    • setByte

      public void setByte(byte value)
      Specified by:
      setByte in interface RowSetter<T>
    • setChar

      public void setChar(char value)
      Specified by:
      setChar in interface RowSetter<T>
    • setDouble

      public void setDouble(double value)
      Specified by:
      setDouble in interface RowSetter<T>
    • setFloat

      public void setFloat(float value)
      Specified by:
      setFloat in interface RowSetter<T>
    • setInt

      public void setInt(int value)
      Specified by:
      setInt in interface RowSetter<T>
    • setLong

      public void setLong(long value)
      Specified by:
      setLong in interface RowSetter<T>
    • setShort

      public void setShort(short value)
      Specified by:
      setShort in interface RowSetter<T>
    • getType

      public Class<T> getType()
      Specified by:
      getType in interface RowSetter<T>
    • setType

      public void setType(Class<T> type)
    • copy

      public CustomSetterValue<T> copy()
      Creates a new instance and copies over the contents of current instance.
      Returns:
      A new instance matching the current instance
    • asString

      public String asString()
      Returns:
      the appropriate value as String