org.terracotta.toolkit.search.expression
Class Range

java.lang.Object
  extended by org.terracotta.toolkit.search.expression.BaseClause
      extended by org.terracotta.toolkit.search.expression.Range
All Implemented Interfaces:
Clause

public class Range
extends BaseClause

Clause that represents a range constraint. Open, half-open, and closed ranges are all supported. Values that define the range must implement Comparable


Field Summary
 
Fields inherited from class org.terracotta.toolkit.search.expression.BaseClause
SEP
 
Constructor Summary
Range(String attributeName, Object min, Object max, boolean minInclusive, boolean maxInclusive)
           
 
Method Summary
 String getAttributeName()
           
 Comparable getMax()
           
 Comparable getMin()
           
 boolean isMaxInclusive()
           
 boolean isMinInclusive()
           
 String toString()
           
 
Methods inherited from class org.terracotta.toolkit.search.expression.BaseClause
and, not, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Range

public Range(String attributeName,
             Object min,
             Object max,
             boolean minInclusive,
             boolean maxInclusive)
Method Detail

getMin

public Comparable getMin()

getMax

public Comparable getMax()

isMinInclusive

public boolean isMinInclusive()

isMaxInclusive

public boolean isMaxInclusive()

getAttributeName

public String getAttributeName()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Terracotta, Inc.. All Rights Reserved.