Package org.pentaho.di.compatibility
Class ValueInteger
- java.lang.Object
-
- org.pentaho.di.compatibility.ValueInteger
-
- All Implemented Interfaces:
Cloneable
,ValueInterface
public class ValueInteger extends Object implements ValueInterface, Cloneable
This class contains a Value of type Integer and the length by which it is described.- Since:
- 15-10-2004
- Author:
- Matt
-
-
Constructor Summary
Constructors Constructor Description ValueInteger()
ValueInteger(long number)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
clone()
BigDecimal
getBigNumber()
boolean
getBoolean()
byte[]
getBytes()
Date
getDate()
long
getInteger()
int
getLength()
double
getNumber()
int
getPrecision()
Serializable
getSerializable()
String
getString()
int
getType()
String
getTypeDesc()
void
setBigNumber(BigDecimal number)
void
setBoolean(boolean bool)
void
setBytes(byte[] b)
void
setDate(Date date)
void
setInteger(long number)
void
setLength(int length)
void
setLength(int length, int precision)
void
setNumber(double number)
void
setPrecision(int precision)
void
setSerializable(Serializable ser)
void
setString(String string)
-
-
-
Method Detail
-
getType
public int getType()
- Specified by:
getType
in interfaceValueInterface
-
getTypeDesc
public String getTypeDesc()
- Specified by:
getTypeDesc
in interfaceValueInterface
-
getString
public String getString()
- Specified by:
getString
in interfaceValueInterface
-
getNumber
public double getNumber()
- Specified by:
getNumber
in interfaceValueInterface
-
getDate
public Date getDate()
- Specified by:
getDate
in interfaceValueInterface
-
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean
in interfaceValueInterface
-
getInteger
public long getInteger()
- Specified by:
getInteger
in interfaceValueInterface
-
setSerializable
public void setSerializable(Serializable ser)
- Specified by:
setSerializable
in interfaceValueInterface
-
setString
public void setString(String string)
- Specified by:
setString
in interfaceValueInterface
-
setNumber
public void setNumber(double number)
- Specified by:
setNumber
in interfaceValueInterface
-
setDate
public void setDate(Date date)
- Specified by:
setDate
in interfaceValueInterface
-
setBoolean
public void setBoolean(boolean bool)
- Specified by:
setBoolean
in interfaceValueInterface
-
setInteger
public void setInteger(long number)
- Specified by:
setInteger
in interfaceValueInterface
-
getLength
public int getLength()
- Specified by:
getLength
in interfaceValueInterface
-
getPrecision
public int getPrecision()
- Specified by:
getPrecision
in interfaceValueInterface
-
setLength
public void setLength(int length, int precision)
- Specified by:
setLength
in interfaceValueInterface
-
setLength
public void setLength(int length)
- Specified by:
setLength
in interfaceValueInterface
-
setPrecision
public void setPrecision(int precision)
- Specified by:
setPrecision
in interfaceValueInterface
-
clone
public Object clone()
- Specified by:
clone
in interfaceValueInterface
- Overrides:
clone
in classObject
-
getBigNumber
public BigDecimal getBigNumber()
- Specified by:
getBigNumber
in interfaceValueInterface
-
setBigNumber
public void setBigNumber(BigDecimal number)
- Specified by:
setBigNumber
in interfaceValueInterface
-
getSerializable
public Serializable getSerializable()
- Specified by:
getSerializable
in interfaceValueInterface
-
getBytes
public byte[] getBytes()
- Specified by:
getBytes
in interfaceValueInterface
-
setBytes
public void setBytes(byte[] b)
- Specified by:
setBytes
in interfaceValueInterface
-
-