Return type | Name and parameters |
---|---|
List
|
toList()
Accumulates the elements of stream into a new List. |
Set
|
toSet()
Accumulates the elements of stream into a new Set. |