| Package | Description |
|---|---|
| net.digitalid.utility.functional.failable |
Provides failable interfaces for functional programming.
|
| net.digitalid.utility.functional.interfaces |
Provides interfaces for functional programming.
|
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull Predicate<INPUT> |
FailablePredicate.suppressExceptions()
Returns a predicate that suppresses the exceptions of this predicate and returns false instead.
|
default @Nonnull Predicate<INPUT> |
FailablePredicate.suppressExceptions(boolean defaultOutput)
Returns a predicate that suppresses the exceptions of this predicate and returns the given default output instead.
|
default @Nonnull Predicate<INPUT> |
FailablePredicate.suppressExceptions(@Nonnull Consumer<? super Exception> handler)
Returns a predicate that catches the exceptions of this predicate, passes them to the given exception handler and returns false instead.
|
default @Nonnull Predicate<INPUT> |
FailablePredicate.suppressExceptions(@Nonnull Consumer<? super Exception> handler,
boolean defaultOutput)
Returns a predicate that catches the exceptions of this predicate, passes them to the given exception handler and returns the given default output instead.
|
| Modifier and Type | Field and Description |
|---|---|
static @Nonnull Predicate<Object> |
Predicate.ALWAYS_FALSE
Stores a predicate which always returns false.
|
static @Nonnull Predicate<Object> |
Predicate.ALWAYS_TRUE
Stores a predicate which always returns true.
|
| Modifier and Type | Method and Description |
|---|---|
default <INITIAL_INPUT> |
Predicate.after(@Nonnull UnaryFunction<? super INITIAL_INPUT,? extends INPUT> function)
Returns the composition of the given function followed by this predicate.
|
static <INPUT> @Nonnull Predicate<INPUT> |
Predicate.and(@Nonnull FiniteIterable<? extends Predicate<? super INPUT>> predicates)
Returns the conjunction of the given predicates.
|
default @Nonnull Predicate<INPUT> |
Predicate.and(@Nonnull Predicate<? super INPUT> predicate)
Returns the conjunction of this predicate with the given predicate.
|
default @Nonnull Predicate<INPUT> |
Predicate.negate() |
static <INPUT> @Nonnull Predicate<INPUT> |
Predicate.or(@Nonnull FiniteIterable<? extends Predicate<? super INPUT>> predicates)
Returns the disjunction of the given predicates.
|
static <INPUT> @Nonnull Predicate<INPUT> |
Predicate.or(Predicate<? super INPUT>... predicates)
Returns the disjunction of the given predicates.
|
default @Nonnull Predicate<INPUT> |
Predicate.or(@Nonnull Predicate<? super INPUT> predicate)
Returns the disjunction of this predicate with the given predicate.
|
default @Nonnull Predicate<INPUT> |
Predicate.replaceNull(boolean defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
default @Nonnull Predicate<INPUT> |
Predicate.and(@Nonnull Predicate<? super INPUT> predicate)
Returns the conjunction of this predicate with the given predicate.
|
static <INPUT> @Nonnull Predicate<INPUT> |
Predicate.or(Predicate<? super INPUT>... predicates)
Returns the disjunction of the given predicates.
|
default @Nonnull Predicate<INPUT> |
Predicate.or(@Nonnull Predicate<? super INPUT> predicate)
Returns the disjunction of this predicate with the given predicate.
|
Copyright © 2017. All rights reserved.