title: Possibility to add instances of generic types in Java 8
body: <p>I want to implement some algorithm:</p>
  
  <pre><code>public class MaximumSubarrayAlgorithm&lt;TArray extends List&lt;T&gt;, T extends Comparable&lt;T&gt;&gt; 
  {
  
  public void DoSmth(TArray simple) {
  
      T t1 = simple.get(0);
      T t2 = simple.get(1);
  
      t1 = t1 + t2; // wrong: The operator + is undefined for the argument type(s) T, T
  
      return null;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>How to require possibility to add instances of type parameters (and tell it to java compiler)? May be T is not Integer, it may be some other type, that support addition.</p>