Package com.illumon.iris.importers
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>
The class is an implementation of RowSetter that in addition exposes the get methods to access the data value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()copy()Creates a new instance and copies over the contents of current instance.bytechardoublefloatintlongshortgetType()getValue()booleanvoidvoidsetBoolean(Boolean value) voidsetByte(byte value) voidsetChar(char value) voidsetDouble(double value) voidsetFloat(float value) voidsetInt(int value) voidsetLong(long value) voidsetShort(short value) void
-
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
-
set
-
setBoolean
- Specified by:
setBooleanin interfaceRowSetter<T>
-
setByte
public void setByte(byte value) -
setChar
public void setChar(char value) -
setDouble
public void setDouble(double value) -
setFloat
public void setFloat(float value) -
setInt
public void setInt(int value) -
setLong
public void setLong(long value) -
setShort
public void setShort(short value) -
getType
-
setType
-
copy
Creates a new instance and copies over the contents of current instance.- Returns:
- A new instance matching the current instance
-
asString
- Returns:
- the appropriate value as String
-