T
- the type of range values.@StableMinor(version="12.1", sinceVersion="9.0") public class Range<T extends Comparable<T>> extends Object implements Serializable
from
and a to
value.
Both from
and to
may be null
, but not at the same time.
A null
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 both from
and to
were null
at the same time, it would represent
the whole universe of possible values.
Constructor and Description |
---|
Range(T from,
T to)
Creates a new range.
|
public Range(T from, T to)
from
- the lower range limit.to
- the upper range limit.IllegalArgumentException
- if both from
and to
are null
or to
is less than from
.LumisXP 12.1.0.191010 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.