Package org.pentaho.di.compatibility
Interface ValueInterface
- All Known Implementing Classes:
ValueBigNumber
,ValueBinary
,ValueBoolean
,ValueDate
,ValueInteger
,ValueNumber
,ValueSerializable
,ValueString
public interface ValueInterface
This interface provides a way to look at a Number, String, Integer, Date... the same way. The methods mentioned in
this interface are common to all Value types.
- Since:
- 15-10-2004
- Author:
- Matt
-
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
byte[]
getBytes()
getDate()
long
int
double
int
int
getType()
void
setBigNumber
(BigDecimal number) void
setBoolean
(boolean bool) void
setBytes
(byte[] b) void
void
setInteger
(long number) void
setLength
(int length) void
setLength
(int length, int precision) void
setNumber
(double number) void
setPrecision
(int precision) void
void
-
Method Details
-
getType
int getType() -
getTypeDesc
String getTypeDesc() -
getString
String getString() -
getNumber
double getNumber() -
getDate
Date getDate() -
getBoolean
boolean getBoolean() -
getInteger
long getInteger() -
getBigNumber
BigDecimal getBigNumber() -
getSerializable
Serializable getSerializable() -
getBytes
byte[] getBytes() -
setString
-
setNumber
void setNumber(double number) -
setDate
-
setBoolean
void setBoolean(boolean bool) -
setInteger
void setInteger(long number) -
setBigNumber
-
setSerializable
-
setBytes
void setBytes(byte[] b) -
getLength
int getLength() -
getPrecision
int getPrecision() -
setLength
void setLength(int length) -
setPrecision
void setPrecision(int precision) -
setLength
void setLength(int length, int precision) -
clone
Object clone()
-