title: Generics - The method in the type is not applicable for the arguments
body: <p>I am using an external library which contains a method :  </p>
  
  <pre><code>public &lt;V&gt; List&lt;V&gt; getObjectsForHashCriteria(@NonNull final Class&lt;V&gt; clazz,     @NonNull final V hashObject) {
  final DynamoDBQueryExpression&lt;V&gt; queryExpression = new     DynamoDBQueryExpression&lt;V&gt;().withHashKeyValues(hashObject);
  return dynamoDBMapper.query(clazz, queryExpression,
              dynamoDBMapperConfig);
  }
  </code></pre>
  
  <p>I want to invoke the above method. To get the class object, I am passing it in the constructor. Something like this :</p>
  
  <pre><code>MyClass(final @NonNull Class&lt;T&gt; clazz){
  this.clazz = clazz}
  </code></pre>
  
  <p>Inorder to invoke the getObjectsForHashCriteria(), I am currently doing it as shown below but it shows compilation error :</p>
  
  <pre><code>public &lt;T&gt; List&lt;T&gt; fetchObjectsForHashCriteria(@NonNull final T hashObject){
  instance.getObjectsForHashCriteria(clazz, hashObject);
  }
  </code></pre>
  
  <p>But it shows a compilation error : </p>
  
  <blockquote>
    <p>The method getObjectsForHashCriteria(Class,V) is not applicable for
    the arguments (Class,T).</p>
  </blockquote>
  
  <p>So basically I am trying to pass generic type parameters as generic type arguments. Please let me know what is the issue with this ? If this is not possible, is there any workaround for this ?</p>