title: Java: How to determine if type is any of primitive/wrapper/String, or something else
body: <p>Is there a single method in JDK or common basic libraries which returns true if a type is a primitive, a primitive wrapper, or a String?</p>
  
  <p>I.e. </p>
  
  <pre><code>Class&lt;?&gt; type = ...
  boolean isSimple = SomeUtil.isSimple( type );
  </code></pre>
  
  <p>The need for such information can be e.g. to check whether some data can be represented in formats like JSON. The reason for a single method is to be able to use it in expression language or templates.</p>