Range currently requires the generic type to implement Comparable. This prevents usage with types that do not but could be compared. Also java.lang.Number does not implement Comparable.
Within this context we should also tidy up constructors of ValueOutOfRangeException to avoid ambiguous reference problems. However, we first need to deprecate existing constructors and add new ones. In a later release we can then remove the deprecated constructors.
Range
currently requires the generic type to implementComparable
. This prevents usage with types that do not but could be compared. Alsojava.lang.Number
does not implementComparable
. Within this context we should also tidy up constructors ofValueOutOfRangeException
to avoid ambiguous reference problems. However, we first need to deprecate existing constructors and add new ones. In a later release we can then remove the deprecated constructors.