com.espertech.esper.type
Class IntParameter

java.lang.Object
  extended by com.espertech.esper.type.IntParameter
All Implemented Interfaces:
NumberSetParameter, MetaDefItem, java.io.Serializable

public class IntParameter
extends java.lang.Object
implements NumberSetParameter

Parameter supplying a single int value is a set of numbers.

See Also:
Serialized Form

Constructor Summary
IntParameter()
           
IntParameter(int intValue)
          Ctor.
 
Method Summary
 boolean containsPoint(int point)
           
 java.lang.String formatted()
           
 int getIntValue()
          Returns int value.
 java.util.Set<java.lang.Integer> getValuesInRange(int min, int max)
          Return a set of int values representing the value of the parameter for the given range.
 boolean isWildcard(int min, int max)
          Returns true if all values between and including min and max are supplied by the parameter.
 void setIntValue(int intValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntParameter

public IntParameter()

IntParameter

public IntParameter(int intValue)
Ctor.

Parameters:
intValue - - single in value
Method Detail

getIntValue

public int getIntValue()
Returns int value.

Returns:
int value

setIntValue

public void setIntValue(int intValue)

isWildcard

public boolean isWildcard(int min,
                          int max)
Description copied from interface: NumberSetParameter
Returns true if all values between and including min and max are supplied by the parameter.

Specified by:
isWildcard in interface NumberSetParameter
Parameters:
min - - lower end of range
max - - upper end of range
Returns:
true if parameter specifies all int values between min and max, false if not

getValuesInRange

public java.util.Set<java.lang.Integer> getValuesInRange(int min,
                                                         int max)
Description copied from interface: NumberSetParameter
Return a set of int values representing the value of the parameter for the given range.

Specified by:
getValuesInRange in interface NumberSetParameter
Parameters:
min - - lower end of range
max - - upper end of range
Returns:
set of integer

containsPoint

public boolean containsPoint(int point)
Specified by:
containsPoint in interface NumberSetParameter

formatted

public java.lang.String formatted()
Specified by:
formatted in interface NumberSetParameter

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