com.blueworld.lassopro
Class FloatValue

java.lang.Object
  |
  +--java.lang.Number
        |
        +--com.blueworld.lassopro.FloatValue
All Implemented Interfaces:
java.io.Serializable

public class FloatValue
extends java.lang.Number

Wrapper for a primitive type float or double. Used for returning decimal values from LassoCall.typeGetDecimal method.

	FloatValue f = new FloatValue();
	if ( lasso.typeGetDecimal( newQuote, f ) == ERR_NOERR ) {
	    lasso.outputTagData( "'AAPL': " + f.toString() );
	}
 	

See Also:
Serialized Form

Constructor Summary
FloatValue()
           
FloatValue(double value)
           
FloatValue(float value)
           
 
Method Summary
 byte byteValue()
          Returns the value of this object as a byte.
 double doubleValue()
          Returns the value of this FloatValue as a double.
 float floatValue()
          Returns the value of this FloatValue as a float.
 int intValue()
          Returns the value of this object as an int.
 long longValue()
          Returns the value of this object as a long.
 void setDouble(double value)
           
 void setFloat(float value)
           
 short shortValue()
          Returns the value of this object as a short.
 java.lang.String toString()
          Converts the object to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FloatValue

public FloatValue()

FloatValue

public FloatValue(float value)

FloatValue

public FloatValue(double value)
Method Detail

toString

public java.lang.String toString()
Converts the object to a string.

Overrides:
toString in class java.lang.Object

byteValue

public byte byteValue()
Returns the value of this object as a byte.

Overrides:
byteValue in class java.lang.Number

shortValue

public short shortValue()
Returns the value of this object as a short.

Overrides:
shortValue in class java.lang.Number

intValue

public int intValue()
Returns the value of this object as an int.

Specified by:
intValue in class java.lang.Number

longValue

public long longValue()
Returns the value of this object as a long.

Specified by:
longValue in class java.lang.Number

floatValue

public float floatValue()
Returns the value of this FloatValue as a float.

Specified by:
floatValue in class java.lang.Number

doubleValue

public double doubleValue()
Returns the value of this FloatValue as a double.

Specified by:
doubleValue in class java.lang.Number

setFloat

public void setFloat(float value)

setDouble

public void setDouble(double value)