| Constructor and Description |
|---|
Evaluate() |
| Modifier and Type | Method and Description |
|---|---|
static <INPUT,EXCEPTION extends Exception> |
consumerIfNotNull(INPUT input,
@Nonnull FailableConsumer<? super INPUT,? extends EXCEPTION> consumer)
Lets the given consumer consume the given input if it is not null.
|
static <INPUT0,INPUT1,OUTPUT,EXCEPTION extends Exception> |
functionIfBothNotNull(INPUT0 input0,
INPUT1 input1,
@Nonnull FailableBinaryFunction<? super INPUT0,? super INPUT1,? extends OUTPUT,? extends EXCEPTION> function)
Evaluates the given function for the given inputs if both inputs are not null or propagates null otherwise.
|
static <INPUT0,INPUT1,OUTPUT,EXCEPTION extends Exception> |
functionIfBothNotNull(INPUT0 input0,
INPUT1 input1,
@Nonnull FailableBinaryFunction<? super INPUT0,? super INPUT1,? extends OUTPUT,? extends EXCEPTION> function,
OUTPUT defaultOutput)
Evaluates the given function for the given inputs if both inputs are not null or returns the given default output otherwise.
|
static <INPUT0,INPUT1,OUTPUT,EXCEPTION extends Exception> |
functionIfFirstNotNull(INPUT0 input0,
INPUT1 input1,
@Nonnull FailableBinaryFunction<? super INPUT0,? super INPUT1,? extends OUTPUT,? extends EXCEPTION> function)
Evaluates the given function for the given inputs if the first input is not null or propagates null otherwise.
|
static <INPUT0,INPUT1,OUTPUT,EXCEPTION extends Exception> |
functionIfFirstNotNull(INPUT0 input0,
INPUT1 input1,
@Nonnull FailableBinaryFunction<? super INPUT0,? super INPUT1,? extends OUTPUT,? extends EXCEPTION> function,
OUTPUT defaultOutput)
Evaluates the given function for the given inputs if the first input is not null or returns the given default output otherwise.
|
static <INPUT,OUTPUT,EXCEPTION extends Exception> |
functionIfNotNull(INPUT input,
@Nonnull FailableUnaryFunction<? super INPUT,? extends OUTPUT,? extends EXCEPTION> function)
Evaluates the given function for the given input if it is not null or propagates null otherwise.
|
static <INPUT,OUTPUT,EXCEPTION extends Exception> |
functionIfNotNull(INPUT input,
@Nonnull FailableUnaryFunction<? super INPUT,? extends OUTPUT,? extends EXCEPTION> function,
OUTPUT defaultOutput)
Evaluates the given function for the given input if it is not null or returns the given default output otherwise.
|
static <INPUT,EXCEPTION extends Exception> |
predicateIfNotNull(INPUT input,
@Nonnull FailablePredicate<? super INPUT,? extends EXCEPTION> predicate)
Evaluates the given predicate for the given input if it is not null or returns false otherwise.
|
static <INPUT,EXCEPTION extends Exception> |
predicateIfNotNull(INPUT input,
@Nonnull FailablePredicate<? super INPUT,? extends EXCEPTION> predicate,
boolean defaultOutput)
Evaluates the given predicate for the given input if it is not null or returns the given default output otherwise.
|
@Pure public static <INPUT,EXCEPTION extends Exception> void consumerIfNotNull(@Captured @Nullable INPUT input, @Nonnull @Nonnull FailableConsumer<? super INPUT,? extends EXCEPTION> consumer) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure public static <INPUT,EXCEPTION extends Exception> boolean predicateIfNotNull(@NonCaptured @Unmodified @Nullable INPUT input, @Nonnull @Nonnull FailablePredicate<? super INPUT,? extends EXCEPTION> predicate, boolean defaultOutput) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure public static <INPUT,EXCEPTION extends Exception> boolean predicateIfNotNull(@NonCaptured @Unmodified @Nullable INPUT input, @Nonnull @Nonnull FailablePredicate<? super INPUT,? extends EXCEPTION> predicate) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure public static <INPUT,OUTPUT,EXCEPTION extends Exception> OUTPUT functionIfNotNull(@NonCaptured @Unmodified @Nullable INPUT input, @Nonnull @Nonnull FailableUnaryFunction<? super INPUT,? extends OUTPUT,? extends EXCEPTION> function, @NonCaptured @Unmodified OUTPUT defaultOutput) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @Nullable public static <INPUT,OUTPUT,EXCEPTION extends Exception> OUTPUT functionIfNotNull(@NonCaptured @Unmodified @Nullable INPUT input, @Nonnull @Nonnull FailableUnaryFunction<? super INPUT,? extends OUTPUT,? extends EXCEPTION> function) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure public static <INPUT0,INPUT1,OUTPUT,EXCEPTION extends Exception> OUTPUT functionIfFirstNotNull(@NonCaptured @Unmodified @Nullable INPUT0 input0, @NonCaptured @Unmodified INPUT1 input1, @Nonnull @Nonnull FailableBinaryFunction<? super INPUT0,? super INPUT1,? extends OUTPUT,? extends EXCEPTION> function, @NonCaptured @Unmodified OUTPUT defaultOutput) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @Nullable public static <INPUT0,INPUT1,OUTPUT,EXCEPTION extends Exception> OUTPUT functionIfFirstNotNull(@NonCaptured @Unmodified @Nullable INPUT0 input0, @NonCaptured @Unmodified INPUT1 input1, @Nonnull @Nonnull FailableBinaryFunction<? super INPUT0,? super INPUT1,? extends OUTPUT,? extends EXCEPTION> function) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure public static <INPUT0,INPUT1,OUTPUT,EXCEPTION extends Exception> OUTPUT functionIfBothNotNull(@NonCaptured @Unmodified @Nullable INPUT0 input0, @NonCaptured @Unmodified @Nullable INPUT1 input1, @Nonnull @Nonnull FailableBinaryFunction<? super INPUT0,? super INPUT1,? extends OUTPUT,? extends EXCEPTION> function, @NonCaptured @Unmodified OUTPUT defaultOutput) throws EXCEPTION extends Exception
EXCEPTION extends Exception@Pure @Nullable public static <INPUT0,INPUT1,OUTPUT,EXCEPTION extends Exception> OUTPUT functionIfBothNotNull(@NonCaptured @Unmodified @Nullable INPUT0 input0, @NonCaptured @Unmodified @Nullable INPUT1 input1, @Nonnull @Nonnull FailableBinaryFunction<? super INPUT0,? super INPUT1,? extends OUTPUT,? extends EXCEPTION> function) throws EXCEPTION extends Exception
EXCEPTION extends ExceptionCopyright © 2017. All rights reserved.