net.esper.eql.parse
Class ListParameter

java.lang.Object
  extended by net.esper.eql.parse.ListParameter
All Implemented Interfaces:
Serializable, NumberSetParameter, MetaDefItem

public class ListParameter
extends Object
implements NumberSetParameter

Represents a list of values in a set of numeric parameters.

See Also:
Serialized Form

Constructor Summary
ListParameter()
          Ctor.
 
Method Summary
protected  void add(NumberSetParameter numberSetParameter)
          Add to the list a further parameter.
protected  List<NumberSetParameter> getParameters()
          Returns list of parameters.
 Set<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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListParameter

public ListParameter()
Ctor.

Method Detail

add

protected void add(NumberSetParameter numberSetParameter)
Add to the list a further parameter.

Parameters:
numberSetParameter - is the parameter to add

getParameters

protected List<NumberSetParameter> getParameters()
Returns list of parameters.

Returns:
list of parameters

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 Set<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