com.espertech.esper.type
Class DoubleValue

java.lang.Object
  extended by com.espertech.esper.type.PrimitiveValueBase
      extended by com.espertech.esper.type.DoubleValue
All Implemented Interfaces:
PrimitiveValue

public class DoubleValue
extends PrimitiveValueBase

Placeholder for a double value in an event expression.


Constructor Summary
DoubleValue()
          Constructor.
DoubleValue(java.lang.Double doubleValue)
          Constructor setting the value.
 
Method Summary
 double getDouble()
          Return the value as an unboxed.
 PrimitiveValueType getType()
          Returns the type of primitive value this instance represents.
 java.lang.Object getValueObject()
          Returns a value object.
 void parse(java.lang.String value)
          Parse the string literal value into the specific data type.
static double parseString(java.lang.String value)
          Parse string value returning a double.
static double[] parseString(java.lang.String[] values)
          Parse the string array returning a double array.
 void setDouble(double x)
          Set a double value.
 java.lang.String toString()
           
 
Methods inherited from class com.espertech.esper.type.PrimitiveValueBase
parse, setBoolean, setByte, setFloat, setInt, setLong, setShort, setString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleValue

public DoubleValue()
Constructor.


DoubleValue

public DoubleValue(java.lang.Double doubleValue)
Constructor setting the value.

Parameters:
doubleValue - value to set.
Method Detail

getType

public PrimitiveValueType getType()
Description copied from interface: PrimitiveValue
Returns the type of primitive value this instance represents.

Returns:
enum type of primitive

parseString

public static double parseString(java.lang.String value)
Parse string value returning a double.

Parameters:
value - to parse
Returns:
parsed value

parse

public final void parse(java.lang.String value)
Description copied from interface: PrimitiveValue
Parse the string literal value into the specific data type.

Parameters:
value - is the textual value to parse

parseString

public static double[] parseString(java.lang.String[] values)
Parse the string array returning a double array.

Parameters:
values - - string array
Returns:
typed array

getValueObject

public final java.lang.Object getValueObject()
Description copied from interface: PrimitiveValue
Returns a value object.

Returns:
value object

getDouble

public final double getDouble()
Return the value as an unboxed.

Returns:
value

setDouble

public final void setDouble(double x)
Description copied from interface: PrimitiveValue
Set a double value.

Specified by:
setDouble in interface PrimitiveValue
Overrides:
setDouble in class PrimitiveValueBase
Parameters:
x - is the value to set

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com