SyntaxFix
Write A Post
Hire A Developer
Questions
Google's Guava library has a Primitives utility that check if a class is a wrapper type for a primitive: Primitives.isWrapperType(class).
Primitives.isWrapperType(class)
Class.isPrimitive() works for primitives