On Sep 28, 2015, at 5:10 PM, Joseph D. Darcy <joe.da...@oracle.com> wrote:
> 
> Joining this thread late, I think the range checking methods would have a 
> happier life where they are more often found and used if the they live 
> somewhere other than the exception classes.
> 
> The class java.util.Objects is not an ideal host for these methods, since 
> they don't deal directly with objects per se, but the scope of Objects could 
> be expanded to include these utilities as well.

You have a point, that's probably a better bikeshed.

Since the key operation is an integer compare, putting it on Integer (near 
compare) would also be defensible.

(The new factory methods for exceptions make sense on the exceptions 
themselves, of course.)

— John

Reply via email to