Package com.atlassian.confluence.core
Class MaybeNot<T>
java.lang.Object
com.atlassian.confluence.core.MaybeNot<T>
- Type Parameters:
- T- the type- Maybeis wrapping
- All Implemented Interfaces:
- io.atlassian.fugue.Effect.Applicant<T>,- io.atlassian.fugue.Maybe<T>,- Iterable<T>
Deprecated.
Helps constructing the left, erroneous case of a 
Maybe- Since:
- 5.2
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> io.atlassian.fugue.Maybe<T> Deprecated.Constructs aMaybewhich will escape with the given message on aMaybe.get()static <T> io.atlassian.fugue.Maybe<T> becauseOfException(Exception exception) Deprecated.Constructs aMaybewhich will escape with the given exception on aMaybe.get()static <T> io.atlassian.fugue.Maybe<T> becauseOfNoResult(io.atlassian.fugue.Maybe<?> maybe) Deprecated.Will cast the givenMaybeto one with the expected parametrisation.booleanDeprecated.booleanDeprecated.booleanDeprecated.voidDeprecated.Deprecated.getOrElse(B other) Deprecated.Deprecated.getOrError(Supplier<String> msg) Deprecated.Deprecated.getOrThrow(Supplier<X> xSupplier) Deprecated.booleanDeprecated.booleanisEmpty()Deprecated.iterator()Deprecated.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface io.atlassian.fugue.Maybeget
- 
Method Details- 
becauseOfNoResultpublic static <T> io.atlassian.fugue.Maybe<T> becauseOfNoResult(io.atlassian.fugue.Maybe<?> maybe) Deprecated.Will cast the givenMaybeto one with the expected parametrisation.This has to be Maybe.isEmpty()Maybe.get()call.- Parameters:
- maybe- to be casted to the target type
- Returns:
- the casted Maybeadhering to the taget type
 
- 
becauseOfDeprecated.Constructs aMaybewhich will escape with the given message on aMaybe.get()- Parameters:
- message- the message used for the escape, may be formatted for application of- String.format(String, Object...)
- args- the arguments used for formatting the message, may be null
- Returns:
- the Maybeescaping on realization
 
- 
becauseOfExceptionDeprecated.Constructs aMaybewhich will escape with the given exception on aMaybe.get()- Parameters:
- exception- the exception to be thrown, will be nested in a- RuntimeException
 
- 
getOrErrorDeprecated.- Specified by:
- getOrErrorin interface- io.atlassian.fugue.Maybe<T>
 
- 
getOrDeprecated.- Specified by:
- getOrin interface- io.atlassian.fugue.Maybe<T>
 
- 
getOrElseDeprecated.- Specified by:
- getOrElsein interface- io.atlassian.fugue.Maybe<T>
 
- 
getOrThrowDeprecated.- Specified by:
- getOrThrowin interface- io.atlassian.fugue.Maybe<T>
- Throws:
- X
 
- 
getOrElseDeprecated.- Specified by:
- getOrElsein interface- io.atlassian.fugue.Maybe<T>
 
- 
foreachDeprecated.- Specified by:
- foreachin interface- io.atlassian.fugue.Effect.Applicant<T>
 
- 
getOrNullDeprecated.- Specified by:
- getOrNullin interface- io.atlassian.fugue.Maybe<T>
 
- 
existsDeprecated.- Specified by:
- existsin interface- io.atlassian.fugue.Maybe<T>
 
- 
iteratorDeprecated.
- 
forallDeprecated.- Specified by:
- forallin interface- io.atlassian.fugue.Maybe<T>
 
- 
isEmptypublic boolean isEmpty()Deprecated.- Specified by:
- isEmptyin interface- io.atlassian.fugue.Maybe<T>
 
- 
isDefinedpublic boolean isDefined()Deprecated.- Specified by:
- isDefinedin interface- io.atlassian.fugue.Maybe<T>
 
- 
containsDeprecated.- Specified by:
- containsin interface- io.atlassian.fugue.Maybe<T>
 
 
- 
None