title: How to check if java.lang.reflect.Type is an Enum
body: <p>I want to check whether a <code>java.lang.reflect.Type</code> instance represents an Emum object or not.</p>
  
  <p>I can check whether it's an instance of a specific class using == comparisons e.g:</p>
  
  <pre><code>type == String.class // works
  </code></pre>
  
  <p>but this doesn't seem to work for the Enum class:</p>
  
  <pre><code>type == Enum.class // doesn't work
  </code></pre>
  
  <p>... this makes sense as the instance would be of a specific enum but I would like to check whether the type is for any enum or not.</p>
  
  <p>Could someone explain the obvious to me of how to tell whether the Type is an enum or not please</p>