Java List Object Remove Duplicates From Array Typescript