com.espertech.esper.type
Class LongValue

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

public final class LongValue
extends PrimitiveValueBase

Placeholder for a long-typed value in an event expression.


Constructor Summary
LongValue()
           
 
Method Summary
 long getLong()
          Returns the long value.
 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 long parseString(java.lang.String value)
          Parse the string containing a long value.
static long[] parseString(java.lang.String[] values)
          Parse the string array returning a long array.
 void setLong(long x)
          Set a long value.
 java.lang.String toString()
           
 
Methods inherited from class com.espertech.esper.type.PrimitiveValueBase
parse, setBoolean, setByte, setDouble, setFloat, setInt, setShort, setString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LongValue

public LongValue()
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

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 long parseString(java.lang.String value)
Parse the string containing a long value.

Parameters:
value - is the textual long value
Returns:
long value

parseString

public static long[] parseString(java.lang.String[] values)
Parse the string array returning a long 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

setLong

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

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

getLong

public final long getLong()
Returns the long value.

Returns:
long value

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