Package lumis.portal.bigdata.query
Class Range<T extends Comparable<T>>
- java.lang.Object
-
- lumis.portal.bigdata.query.Range<T>
-
- Type Parameters:
T
- the type of range values.
- All Implemented Interfaces:
Serializable
@StableMinor(version="14.0", sinceVersion="9.0") public class Range<T extends Comparable<T>> extends Object implements Serializable
Represents a range of values by having afrom
and ato
value.Both
from
andto
may benull
, but not at the same time. Anull
value means an unbounded limit. For example, the range (null
, 100) represents all numbers less than or equal to 100, while the range (100,null
) represents all numbers greater than or equal to 100.
If bothfrom
andto
werenull
at the same time, it would represent the whole universe of possible values.- Since:
- 9.0.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
- See Also:
- Serialized Form
-
-
Constructor Detail
-
Range
public Range(T from, T to)
Creates a new range.- Parameters:
from
- the lower range limit.to
- the upper range limit.- Throws:
IllegalArgumentException
- if bothfrom
andto
arenull
orto
is less thanfrom
.- Since:
- 9.0.0
-
-