Package lumis.portal.bigdata.query
Class Range<T extends java.lang.Comparable<T>>
- java.lang.Object
-
- lumis.portal.bigdata.query.Range<T>
-
- Type Parameters:
T
- the type of range values.
- All Implemented Interfaces:
java.io.Serializable
@StableMinor(version="16.1", sinceVersion="9.0") public class Range<T extends java.lang.Comparable<T>> extends java.lang.Object implements java.io.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: 26156 $ $Date: 2024-01-13 10:26:46 -0300 (Sat, 13 Jan 2024) $
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
T
getFrom()
Returns the from.T
getTo()
Returns the to.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getFrom
public T getFrom()
Returns the from.- Returns:
- the from
- Since:
- 9.0.0
-
getTo
public T getTo()
Returns the to.- Returns:
- the to
- Since:
- 9.0.0
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-