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.
example: I have custom object where two property together makes unique entry
say List customers
customerName and DOB together makes unique entry.
Any solution to identify distinction using predicate for two properties. like below link they have solution on one property. Java 8 Distinct by property
Similar question:
Remove duplicates from a list of objects based on property in Java 8