public final class BambooOptionals extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
get(Optional<T> o,
String errorMessage)
Retrieves the optional content.
|
static <T> Stream<T> |
stream(Optional<T> o)
Converts the given Optional to a Stream
|
static <T> void |
withPresent(Optional<T> o,
Consumer<? super T> consumer,
String errorMessage)
Applies the consumer to the optional value.
|
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences