T - the inputR - the resultNullifier instead; this type will be removed@FunctionalInterface
@Deprecated
public interface Nullifier<T,R>
D d = Nullifier.span(A::getB, B::getC, C::getD).apply(a);Implement
$apply(Object); invoke apply(Object).| Modifier and Type | Method and Description |
|---|---|
R |
$apply(T t)
Deprecated.
Implement this method with a lambda expression/method reference.
|
default <V> Nullifier<T,V> |
andThenSpan(Nullifier<? super R,? extends V> after)
Deprecated.
|
default R |
apply(T t)
Deprecated.
If the argument is null, returns null; else invokes
$apply(Object). |
static <A,B,C,D,E,Z> |
span(Nullifier<A,B> f0,
Nullifier<B,C> f1,
Nullifier<C,D> f2,
Nullifier<D,E> f3,
Nullifier<E,Z> f4)
Deprecated.
|
static <A,B,C,D,Z> |
span(Nullifier<A,B> f0,
Nullifier<B,C> f1,
Nullifier<C,D> f2,
Nullifier<D,Z> f3)
Deprecated.
|
static <A,B,C,Z> Nullifier<A,Z> |
span(Nullifier<A,B> f0,
Nullifier<B,C> f1,
Nullifier<C,Z> f2)
Deprecated.
|
static <A,B,Z> Nullifier<A,Z> |
span(Nullifier<A,B> f0,
Nullifier<B,Z> f1)
Deprecated.
Creates a null-safe chain of calls spanning possibly null call sites.
|
default R apply(T t)
$apply(Object).
This method rethrows any exception thrown by $apply(Object) as an unchecked exception.t - the input which may be nullExceptions.throwChecked(Throwable)R $apply(T t) throws java.lang.Exception
apply(Object) and NOT call this method directly.t - the argumentjava.lang.Exception - on errordefault <V> Nullifier<T,V> andThenSpan(Nullifier<? super R,? extends V> after)
static <A,B,Z> Nullifier<A,Z> span(Nullifier<A,B> f0, Nullifier<B,Z> f1)
A - the initial typeB - an intermediary typeZ - the resultant typef0 - the initial function; may not be nullf1 - a subsequent function; may not be nullstatic <A,B,C,Z> Nullifier<A,Z> span(Nullifier<A,B> f0, Nullifier<B,C> f1, Nullifier<C,Z> f2)
static <A,B,C,D,Z> Nullifier<A,Z> span(Nullifier<A,B> f0, Nullifier<B,C> f1, Nullifier<C,D> f2, Nullifier<D,Z> f3)