public class OptionGetters extends Object
Option
s and other Fugue wrappers.Constructor and Description |
---|
OptionGetters() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
getOrThrowNotFound(com.atlassian.fugue.Option<T> option,
String errorMessage)
Retrieve the non-null value from an
Option , or throw a NotFoundException . |
public static <T> T getOrThrowNotFound(com.atlassian.fugue.Option<T> option, String errorMessage) throws NotFoundException
Option
, or throw a NotFoundException
.T
- option
- errorMessage
- NotFoundException
Copyright © 2003–2021 Atlassian. All rights reserved.