I need to do lots of conversions between primitivetype[] and boxedtype[] (both directions).
Such as: Integer[] <-> int[], Double[] <-> double[], …
I wanted to know, if there’s some quasi-standards APIs out there, which provide such functionality, before I write such utility methods by myself.
Java has 8 primitive types, so it would be quite a (copy-paste) work…
Thank you.
ArrayUtils
ArrayUtils.toObject( primitive[] )and
ArrayUtil.toPrimitive( wrapper[] )