com.davisor.data
Interface NumberValue

All Superinterfaces:
java.lang.Comparable, Data, DataValue, com.davisor.core.Dupable, java.io.Serializable, SerializableData
All Known Implementing Classes:
BooleanData, SimpleNumberValue

public interface NumberValue
extends DataValue

NumberValue objects represents numerical data. The interface is compatible with the Java Number class.

Since:
JDK1.2

Method Summary
 byte byteValue()
          Gets the data byte value.
 double doubleValue()
          Gets the data double value.
 float floatValue()
          Gets the data float value.
 int intValue()
          Gets the data int value.
 long longValue()
          Gets the data long value.
 java.lang.Number numberValue()
          Gets the data Number value.
 void setValue(byte value)
          Sets the data byte value.
 void setValue(double value)
          Sets the data double value.
 void setValue(float value)
          Sets the data float value.
 void setValue(int value)
          Sets the data int value.
 void setValue(long value)
          Sets the data long value.
 void setValue(java.lang.Number value)
          Sets the data Number value.
 void setValue(short value)
          Sets the data short value.
 short shortValue()
          Gets the data short value.
 
Methods inherited from interface com.davisor.data.DataValue
abs, add, ceil, deinterpolate, div, floor, getFormat, interpolate, max, min, mul, negate, setValue, sub, toStatement, toString, toXML, unit
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.davisor.data.SerializableData
isNull
 
Methods inherited from interface com.davisor.data.Data
getType
 
Methods inherited from interface com.davisor.core.Dupable
dup
 

Method Detail

byteValue

public byte byteValue()
Gets the data byte value.


doubleValue

public double doubleValue()
Gets the data double value.


floatValue

public float floatValue()
Gets the data float value.


intValue

public int intValue()
Gets the data int value.


longValue

public long longValue()
Gets the data long value.


shortValue

public short shortValue()
Gets the data short value.


numberValue

public java.lang.Number numberValue()
Gets the data Number value.


setValue

public void setValue(byte value)
              throws InvalidDataException
Sets the data byte value.

Throws:
InvalidDataException - if the value cannot be converted to a byte value

setValue

public void setValue(double value)
              throws InvalidDataException
Sets the data double value.

Throws:
InvalidDataException - if the value cannot be converted to a double value

setValue

public void setValue(float value)
              throws InvalidDataException
Sets the data float value.

Throws:
InvalidDataException - if the value cannot be converted to a float value

setValue

public void setValue(int value)
              throws InvalidDataException
Sets the data int value.

Throws:
InvalidDataException - if the value cannot be converted to a int value

setValue

public void setValue(long value)
              throws InvalidDataException
Sets the data long value.

Throws:
InvalidDataException - if the value cannot be converted to a long value

setValue

public void setValue(java.lang.Number value)
              throws InvalidDataException
Sets the data Number value.

Throws:
InvalidDataException - if the value cannot be converted to a long value

setValue

public void setValue(short value)
              throws InvalidDataException
Sets the data short value.

Throws:
InvalidDataException - if the value cannot be converted to a short value


Copyright © 2001-2004 Davisor Oy. All Rights Reserved.