title: Retrieve distinct element based on multiple attributes of java object using java 8 stream
body: <p>How can I get the distinct element from list based on multiple condition using java 8 stream ?</p>
  
  <p>For example - Let's assume an object <code>Person</code> :</p>
  
  <pre><code>class Person {
      Integer id;
      String name;
  }
  </code></pre>
  
  <p>I want to have a list with unique combination of <code>id</code> and <code>name</code>.<br/>
  There can be multiple records with same id and name in list</p>