In Java, is there a way to specify that an argument implements two interfaces
<p>I am tempted to do such kind of code, using jGraphT</p>

<pre><code>/*
  interface DirectedGraph&lt;V,E&gt; { ...}
  interface WeightedGraph&lt;V,E&gt; { ...}
*/

public class SteinerTreeCalc  {

    public SteinerTreeCalc( &lt; ??? implements DirectedGraph&lt;V,E&gt;, WeightedGraph&lt;V,E&gt; &gt; graph )  {
     ......
    }


}
</code></pre>

<p>I want to create a constructor that ask for an object implementing two interfaces.</p>

<p><strong>Update :</strong>  </p>

<p>In my goal, there are already chosen classes for Vertex and Edges (V and E), but thanks a lot to people who come up with  :</p>

<pre><code>public class SteinerTreeCalc &lt;V, E, T extends DirectedGraph&lt;V, E&gt; &amp; WeightedGraph&lt;V, E&gt;&gt;  
{ 
   ....
}
</code></pre>
