Package com.atlassian.bamboo.utils
Class BambooOptionals
- java.lang.Object
-
- com.atlassian.bamboo.utils.BambooOptionals
-
public final class BambooOptionals extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 Streamstatic <T> void
withPresent(Optional<T> o, Consumer<? super T> consumer, String errorMessage)
Applies the consumer to the optional value.
-