JavaStreamdistinct
sorted

distinctStream

limit

Returns a stream with duplicate elements removed.

Syntax

stream.distinct()