code: static boolean isPrimitiveNumberClass(Class pClass) {
          return
                  pClass == Byte.class ||
                          pClass == Byte.TYPE ||
                          pClass == Short.class ||
                          pClass == Short.TYPE ||
                          pClass == Integer.class ||
                          pClass == Integer.TYPE ||
                          pClass == Long.class ||
                          pClass == Long.TYPE ||
                          pClass == Float.class ||
                          pClass == Float.TYPE ||
                          pClass == Double.class ||
                          pClass == Double.TYPE;
      }
docs: Returns true if the given class is Byte, Short, Integer, Long,
  Float, Double