m-m-m / util

Mature Modular Meta-Framework
http://m-m-m.sourceforge.net
Apache License 2.0
10 stars 5 forks source link

Improve Range to be more generic #172

Closed hohwille closed 8 years ago

hohwille commented 8 years ago

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.

hohwille commented 8 years ago

Done.