code: public static boolean isIntType(Class<?> type) {
          return (type.isPrimitive() && type == int.class) || (type.isPrimitive() && type == long.class)
                  || (!type.isPrimitive() && type == Integer.class) || (!type.isPrimitive() && type == Long.class);
      }
docs: Is int type boolean.
  
  @param type the type
  @return the boolean