edu.northwestern.at.monk.model
Class NumericRange

java.lang.Object
  extended by edu.northwestern.at.monk.model.NumericRange
Direct Known Subclasses:
DoubleRange, LongRange

public abstract class NumericRange
extends java.lang.Object

A range of numbers.

A numeric range is represented by a pair of numbers start and end. Ranges are inclusive - the range (start,end) represents all numbers x which satisfy:

start ≤ x ≤ end

Either or both of start and end may be null, in which case there is no constraint. Thus all the following combinations are possible:

start end condition
not null not null start ≤ x ≤ end
null not null x ≤ end
not null null x ≥ start
not null = start x = start = end
null null no conditions
(all values of x match)

See Also:
MONK Datastore Overview, Licensing Agreement

Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait