- length
Returns the interval length, that is, the number of integers contained in the
interval.
- valueOf
Returns an interval with given extremes.You cannot obtain an empty interval with
this factory method
- compareTo
Compares this interval to an integer with specified left and right radii.
- contains
Checks whether this interval contains the specified interval.
- equals
Checks whether this interval is equal to another set of integers.
- iterator
Returns an iterator over the integers in this interval larger than or equal to a
given integer.
- <init>
Builds an interval with given extremes.You cannot generate an empty interval
with this constructor.