On Fri, 31 Oct 2025 04:55:31 GMT, Joe Darcy <[email protected]> wrote:
> Initial draft of a partial set of methods wrapping primitive operators to get
> feedback on the class providing this functionality.
If this work goes forward, analagous methods for the long and double types
would be added.
For testing, for each method, I was thinking to compare the operation of the
method as a method reference to a lambda with the intended functionality over a
set of inputs. This would help guard against any typos in constructing the
simple methods. For example, a set of int values like {Integer.MAX_VALUE, -3,
-1, 0, 1, 2, 10, Integer.MAX_VALUE} would be able to discriminate between {+,
-, *, /}, etc.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28081#issuecomment-3471342812