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.byte
char
double
float
int
long
short
getType()
getValue()
boolean
void
void
setBoolean
(Boolean value) void
setByte
(byte value) void
setChar
(char value) void
setDouble
(double value) void
setFloat
(float value) void
setInt
(int value) void
setLong
(long value) void
setShort
(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:
setBoolean
in 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
-