Returns the maximum element of this stream according to natural order. @return an Optional describing the maximum element, or empty if this stream is empty
()
| 407 | * @return an Optional describing the maximum element, or empty if this stream is empty |
| 408 | */ |
| 409 | public Optional max() { |
| 410 | return compare(true); |
| 411 | } |
| 412 | |
| 413 | |
| 414 | /** |