Other Operations
Remove Duplicates
final Collection<Object> filtered;
filtered = originalStream.distinct().collect(Collectors.toList());Sorting
final Collection<Object> sorted;
sorted = originalStream.sorted().collect(Collectors.toList());Min and Max
final Object value;
value = originalStream.min(comparator);final Object value;
value = originalStream.max(comparator);Numeric Ranges
Limiting Size
Skipping Values
Last updated
Was this helpful?