code: public static boolean isPrimitive(Type type) {
          return type.equals(boolean.class)
                  || type.equals(double.class)
                  || type.equals(float.class)
                  || type.equals(short.class)
                  || type.equals(int.class)
                  || type.equals(long.class)
                  || type.equals(byte.class)
                  || type.equals(char.class);
      }
docs: Is cls a basic type
  
  @param type Class type
  @return true or false