How to filter a list with same date value using java streams

33 Views Asked by At

I would like to filter a list of T class objects having which is having date fields using java 8 stream.The date is of type LocalDateTime , i want to compare the dates. If there are two records with the same date has to be removed from the list only one has to be retained , duplicate records with the same dates has to be removed.

i tried Filter method of streams which is not working as expected.

0

There are 0 best solutions below