title: Scala: Declaring method with generic type parameter
body: <p>What is the equivalent of the following Java method declaration in Scala:</p>
  
  <pre><code>public &lt;T&gt;  T readValue(java.lang.String s, java.lang.Class&lt;T&gt; tClass)
  </code></pre>
  
  <p>In other words, I'd like to declare a method that takes a class of type T, and returns an instance of that type.</p>