What is the best way to represent a composite key (key containing two values) of a Class and a Boolean
<pre><code>HashMap&lt;Pair&lt;Class&lt;T&gt;,Boolean&gt;,String&gt; abc = new HashMap&lt;Pair&lt;Class&lt;T&gt;,Boolean&gt;,String&gt;();
</code></pre>

<p>What is the best way to represent Pair here... Does Java offer anything?</p>

<p>My key will always be a {class,boolean} pair. </p>

<p>Thanks!</p>
