title: Remove duplicates from a list of objects based on property in Java 8
body: <p>I am trying to remove duplicates from a List of objects based on some property.</p>
  
  <p>can we do it in a simple way using java 8</p>
  
  <pre><code>List&lt;Employee&gt; employee
  </code></pre>
  
  <p>Can we remove duplicates from it based on <code>id</code> property of employee. I have seen posts removing duplicate strings form arraylist of string.</p>