com.espertech.esper.type
Class TimePeriodParameter

java.lang.Object
  extended by com.espertech.esper.type.TimePeriodParameter
All Implemented Interfaces:
EPLParameterType, MetaDefItem, Serializable

public class TimePeriodParameter
extends Object
implements MetaDefItem, EPLParameterType

Parameter for views that accept time period information such as "5 sec 100 msec".

See Also:
Serialized Form

Constructor Summary
TimePeriodParameter(double numSeconds)
          Ctor.
 
Method Summary
 boolean equals(Object object)
           
 double getNumSeconds()
          Returns the number of seconds.
 int hashCode()
           
 void toEPL(StringWriter writer)
          Returns the EPL representation of the parameter.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimePeriodParameter

public TimePeriodParameter(double numSeconds)
Ctor.

Parameters:
numSeconds - is the number of seconds represented by time period string
Method Detail

getNumSeconds

public double getNumSeconds()
Returns the number of seconds.

Returns:
the number of seconds specified by time period string

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toEPL

public void toEPL(StringWriter writer)
Description copied from interface: EPLParameterType
Returns the EPL representation of the parameter.

Specified by:
toEPL in interface EPLParameterType
Parameters:
writer - for output to

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com