T - the type Maybe is wrappingNone@Deprecated public abstract class MaybeNot<T> extends Object implements com.atlassian.fugue.Maybe<T>
Maybe.| Modifier and Type | Method and Description |
|---|---|
static <T> com.atlassian.fugue.Maybe<T> |
becauseOf(String message,
Object... args)
Deprecated.
Constructs a
Maybe which will escape with the given message on a call. |
static <T> com.atlassian.fugue.Maybe<T> |
becauseOfException(Exception exception)
Deprecated.
Constructs a
Maybe which will escape with the given exception on a call. |
static <T> com.atlassian.fugue.Maybe<T> |
becauseOfNoResult(com.atlassian.fugue.Maybe<?> maybe)
Deprecated.
Will cast the given
Maybe to one with the expected parametrisation. |
boolean |
exists(com.google.common.base.Predicate<? super T> p)
Deprecated.
|
boolean |
forall(com.google.common.base.Predicate<? super T> p)
Deprecated.
|
void |
foreach(com.atlassian.fugue.Effect<? super T> effect)
Deprecated.
|
<B extends T> |
getOrElse(B other)
Deprecated.
|
T |
getOrElse(com.google.common.base.Supplier<? extends T> supplier)
Deprecated.
|
T |
getOrError(com.google.common.base.Supplier<String> msg)
Deprecated.
|
T |
getOrNull()
Deprecated.
|
<X extends Throwable> |
getOrThrow(com.google.common.base.Supplier<X> xSupplier)
Deprecated.
|
boolean |
isDefined()
Deprecated.
|
boolean |
isEmpty()
Deprecated.
|
@NonNull Iterator<T> |
iterator()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static <T> com.atlassian.fugue.Maybe<T> becauseOfNoResult(com.atlassian.fugue.Maybe<?> maybe)
Maybe to one with the expected parametrisation.
This has to be since it is expected to escape on a Maybe.isEmpty()Maybe.get() call.
maybe - to be casted to the target typeMaybe adhering to the taget typepublic static <T> com.atlassian.fugue.Maybe<T> becauseOf(String message, Object... args)
Maybe which will escape with the given message on a Maybe.get() call.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 nullMaybe escaping on realizationpublic static <T> com.atlassian.fugue.Maybe<T> becauseOfException(Exception exception)
Maybe which will escape with the given exception on a Maybe.get() call.exception - the exception to be thrown, will be nested in a RuntimeException if it is checkedpublic T getOrError(com.google.common.base.Supplier<String> msg)
getOrError in interface com.atlassian.fugue.Maybe<T>public T getOrElse(com.google.common.base.Supplier<? extends T> supplier)
getOrElse in interface com.atlassian.fugue.Maybe<T>public <X extends Throwable> T getOrThrow(com.google.common.base.Supplier<X> xSupplier) throws X extends Throwable
public <B extends T> T getOrElse(B other)
getOrElse in interface com.atlassian.fugue.Maybe<T>public void foreach(com.atlassian.fugue.Effect<? super T> effect)
foreach in interface com.atlassian.fugue.Effect.Applicant<T>public T getOrNull()
getOrNull in interface com.atlassian.fugue.Maybe<T>public boolean exists(com.google.common.base.Predicate<? super T> p)
exists in interface com.atlassian.fugue.Maybe<T>public boolean forall(com.google.common.base.Predicate<? super T> p)
forall in interface com.atlassian.fugue.Maybe<T>public boolean isEmpty()
isEmpty in interface com.atlassian.fugue.Maybe<T>public boolean isDefined()
isDefined in interface com.atlassian.fugue.Maybe<T>Copyright © 2003–2022 Atlassian. All rights reserved.