title: Java: Is there an easy, quick way to AND, OR, or XOR together sets?
body: <p>That is, if I had two or more sets, and I wanted to return a new set containing either:</p>
  
  <ol>
  <li>All of the elements each set has in common (AND).</li>
  <li>All of the elements total of each set (OR).</li>
  <li>All of the elements unique to each set. (XOR).</li>
  </ol>
  
  <p>Is there an easy, pre-existing way to do that?</p>
  
  <p><strong>Edit:</strong>  That's the wrong terminology, isn't it?</p>