RFR: [type-classes] JDK-8377619: Consider OrderedNumerical interface

Joe Darcy darcy at openjdk.org
Wed Feb 11 09:58:49 UTC 2026


On Tue, 10 Feb 2026 23:20:46 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> For consideration: a single interface to indicate both arithmetic and comparison operators are supported.

Besides a conceptual grouping, a single interface would make it marginally easier to declare an anonymous class to be a witness for both interfaces.

-------------

PR Comment: https://git.openjdk.org/valhalla/pull/2077#issuecomment-3881258759


More information about the valhalla-dev mailing list