com.codestreet.selector.parser
Class NumericValue

java.lang.Object
  extended bycom.codestreet.selector.parser.NumericValue

public class NumericValue
extends java.lang.Object

Class to encapsulate numeric values.

This class allows easier conversion to C# using the JLCA tool from Microsoft since there is no Number class in C#.

Author:
jawaid.hakim

Constructor Summary
NumericValue(java.math.BigDecimal value)
          Ctor.
NumericValue(java.lang.Byte value)
          Ctor.
NumericValue(java.lang.Double value)
          Ctor.
NumericValue(java.lang.Float value)
          Ctor.
NumericValue(java.lang.Integer value)
          Ctor.
NumericValue(java.lang.Long value)
          Ctor.
NumericValue(java.lang.Short value)
          Ctor.
 
Method Summary
 double doubleValue()
          Get double value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericValue

public NumericValue(java.lang.Double value)
Ctor.

Parameters:
value - Value.

NumericValue

public NumericValue(java.lang.Float value)
Ctor.

Parameters:
value - Value.

NumericValue

public NumericValue(java.lang.Long value)
Ctor.

Parameters:
value - Value.

NumericValue

public NumericValue(java.lang.Integer value)
Ctor.

Parameters:
value - Value.

NumericValue

public NumericValue(java.lang.Byte value)
Ctor.

Parameters:
value - Value.

NumericValue

public NumericValue(java.lang.Short value)
Ctor.

Parameters:
value - Value.

NumericValue

public NumericValue(java.math.BigDecimal value)
Ctor.

Parameters:
value - Value.
Method Detail

doubleValue

public double doubleValue()
Get double value.

Returns:
Double value.


Copyright © 2002-2006 CodeStreet. All Rights Reserved.