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.