title: How to efficiently compare Sets?
body: <p>Given two Sets: how to compare them efficiently in Java?</p>
  
  <ul>
  <li>(a) keep them as <code>List</code>s, sort them and compare them. (<code>Comparable</code>)</li>
  <li>(b) keep them as <code>Set</code>s and compare the <code>hashCode</code> of the Sets?</li>
  </ul>
  
  <p><strong>background:</strong></p>
  
  <p>many comparisons need to be done
  Sets are small (usually &lt; 5 elements per set).</p>