public static interface Either.Projection<A,B,L,R> extends Maybe<A>
Modifier and Type | Method and Description |
---|---|
Either<L,R> |
either()
The either value underlying this projection.
|
A |
on(com.google.common.base.Function<? super B,? extends A> f)
The value of this projection or the result of the given function on the
opposing projection's value.
|
Option<? super A> |
toOption()
Returns this projection's value in
Some if it exists,
otherwise None . |
exists, forall, get, getOrElse, getOrElse, getOrError, getOrNull, getOrThrow, isDefined, isEmpty, iterator
foreach
Either<L,R> either()
Option<? super A> toOption()
Some
if it exists,
otherwise None
.Some
if it exists,
otherwise None
.A on(com.google.common.base.Function<? super B,? extends A> f)
f
- The function to execute if this projection has no value.Copyright © 2015 Atlassian. All rights reserved.