public static boolean isIntegerType ( final Class type ) { return Arrays . < Class > asList ( Integer . class , int . class , Long . class , long . class , Short . class , short . class , Byte . class , byte . class ) . contains ( type ) ; }
Checks if the class is an integer type i . e . is numeric but not a floating point type .