title: Removing duplicates from the list of objects based on more than one property in java 8
body: <p>I am trying to remove duplicates from the list of objects based on two properties, this question would be similar to below link but I am trying to find uniqueness based on two properties using java 8 features.</p>
  
  <p>example: I have custom object where two property together makes unique entry</p>
  
  <p>say List customers</p>
  
  <p>customerName and DOB together makes unique entry. </p>
  
  <p>Any solution to identify distinction using predicate for two properties.
  like below link they have solution on one property.
  <a href="https://stackoverflow.com/questions/23699371/java-8-distinct-by-property">Java 8 Distinct by property</a> </p>
  
  <p>Similar question:</p>
  
  <p><a href="https://stackoverflow.com/questions/29670116/remove-duplicates-from-a-list-of-objects-based-on-property-in-java-8/29671170">Remove duplicates from a list of objects based on property in Java 8</a>    </p>