Simple way to get wrapper class type in Java

Apache Commons Lang has a utility method to do this (ClassUtils.primitiveToWrapper()), which will be just as ugly under the covers, but at least you can pretend it’s nice.

Leave a Comment