public class StreamUtil extends Object
| Constructor and Description |
|---|
StreamUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Stream<T> |
opt2stream(Optional<T> opt)
Turns an Optional into a Stream of length zero or one depending upon whether a value is present.
|
Copyright © 2025. All rights reserved.