- <init>
Creates a new range.
- getUpperBound
Returns the upper bound for the range.
- getLowerBound
Returns the lower bound for the range.
- getLength
Returns the length of the range.
- getCentralValue
Returns the central value for the range.
- combine
Creates a new range by combining two existing ranges. Note that: * either range can be null, in whic
- constrain
Returns the value within the range that is closest to the specified value.
- contains
Returns true if the range contains the specified value andfalse otherwise.
- expand
Creates a new range by adding margins to an existing range.
- expandToInclude
Returns a range that includes all the values in the specifiedrange AND the
specified value.
- intersects
Returns true if the range intersects with the specified range, and false
otherwise.
- shift
Shifts the range by the specified amount.