public static boolean isWrapper ( Class < ? > type ) { if ( Boolean . class == type ) { return true ; } if ( Byte . class == type ) { return true ; } if ( Character . class == type ) { return true ; } if ( Short . class == type ) { return true ; } if ( Integer . class == type ) { return true ; } if ( Long . class == type ) { return true ; } if ( Float . class == type ) { return true ; } if ( Double . class == type ) { return true ; } return false ; }
Indicate if the class is a known primitive wrapper type