Class OptionGetters
- java.lang.Object
- 
- com.atlassian.confluence.plugins.restapi.resources.OptionGetters
 
- 
 public class OptionGetters extends Object Methods for getting values fromOptions and other Fugue wrappers.
- 
- 
Constructor SummaryConstructors Constructor Description OptionGetters()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TgetOrThrowNotFound(com.atlassian.fugue.Option<T> option, String errorMessage)Retrieve the non-null value from anOption, or throw aNotFoundException.
 
- 
- 
- 
Method Detail- 
getOrThrowNotFoundpublic static <T> T getOrThrowNotFound(com.atlassian.fugue.Option<T> option, String errorMessage) throws NotFoundExceptionRetrieve the non-null value from anOption, or throw aNotFoundException.- Type Parameters:
- T-
- Parameters:
- option-
- errorMessage-
- Returns:
- the value
- Throws:
- NotFoundException
 
 
- 
 
-