public static boolean isPrimitive()

in google-http-client/src/main/java/com/google/api/client/util/Data.java [336:350]


  public static boolean isPrimitive(Type type) {
    // TODO(yanivi): support java.net.URI as primitive type?
    if (type instanceof WildcardType) {
      type = Types.getBound((WildcardType) type);
    }
    if (!(type instanceof Class<?>)) {
      return false;
    }
    Class<?> typeClass = (Class<?>) type;
    return typeClass.isPrimitive() || typeClass == Character.class || typeClass == String.class
        || typeClass == Integer.class || typeClass == Long.class || typeClass == Short.class
        || typeClass == Byte.class || typeClass == Float.class || typeClass == Double.class
        || typeClass == BigInteger.class || typeClass == BigDecimal.class
        || typeClass == DateTime.class || typeClass == Boolean.class;
  }