I have 2 observations:

(1) Currently, the following methods are in o.a.c.l.NumberUtils

int maximum(int a, int b, int c)
long maximum(long a, long b, long c)
int minimum(int a, int b, int c)
long minimum(long a, long b, long c)

I think it be more flexible to replace them with the following:

int minimum(int[] intArr)
int maximum(int[] intArr)
long minimum(long[] longArr)
long maximum(long[] longArr)

It also may be a good time to add any missing methods such as:

short minimum(short[] shortArr)
short maximum(short[] shortArr)
float minimum(float[] floatArr)
float maximum(float[] floatArr)
double minimum(double[] doubleArr)
double maximum(double[] doubleArr)

Any thoughts?


(2) After searching for an easy way to xor booleans, and not finding
anything, I created a method:

boolean xor(boolean[] boolArr)

Would this be a good addition to NumberUtils?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to