code: 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);
      }
docs: Checks if the class is an integer type, i.e., is numeric but not a floating point type.
  
  @param type the class we want to check
  @return true if the type is an integral type