Package org.postgresql.pljava.internal
Interface Checked.Predicate<T,E extends Throwable>
-
- Type Parameters:
T
- Type of the predicate's parameter.E
- Exception type that can be thrown by the body.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface Checked.Predicate<T,E extends Throwable> extends Checked<Predicate<T>,E>
LikePredicate
but with a body that can throw checked exceptions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.postgresql.pljava.internal.Checked
Checked.AutoCloseable<E extends Exception>, Checked.BiConsumer<T,U,E extends Throwable>, Checked.BooleanConsumer<E extends Throwable>, Checked.BooleanSupplier<E extends Throwable>, Checked.ByteConsumer<E extends Throwable>, Checked.ByteSupplier<E extends Throwable>, Checked.CharConsumer<E extends Throwable>, Checked.CharSupplier<E extends Throwable>, Checked.Closing<T,E extends Exception>, Checked.Consumer<T,E extends Throwable>, Checked.DoubleConsumer<E extends Throwable>, Checked.DoubleSupplier<E extends Throwable>, Checked.FloatConsumer<E extends Throwable>, Checked.FloatSupplier<E extends Throwable>, Checked.Function<T,R,E extends Throwable>, Checked.IntConsumer<E extends Throwable>, Checked.IntSupplier<E extends Throwable>, Checked.LongConsumer<E extends Throwable>, Checked.LongSupplier<E extends Throwable>, Checked.OptionalBase, Checked.OptionalBoolean, Checked.OptionalByte, Checked.OptionalChar, Checked.OptionalFloat, Checked.OptionalShort, Checked.Predicate<T,E extends Throwable>, Checked.Runnable<E extends Throwable>, Checked.ShortConsumer<E extends Throwable>, Checked.ShortSupplier<E extends Throwable>, Checked.Supplier<T,E extends Throwable>, Checked.ToByteFunction<T,E extends Throwable>, Checked.ToCharFunction<T,E extends Throwable>, Checked.ToDoubleFunction<T,E extends Throwable>, Checked.ToFloatFunction<T,E extends Throwable>, Checked.ToIntFunction<T,E extends Throwable>, Checked.ToLongFunction<T,E extends Throwable>, Checked.ToShortFunction<T,E extends Throwable>
-
-
Method Summary
Modifier and Type Method Description default Predicate<T>
ederWrap()
Wraps thisChecked
functional interfaces as its corresponding Java functional interfaceWT
, which possibly does not allow checked exceptions.default Checked.Predicate<T,E>
negate()
Evaluates this predicate on the given argument.boolean
test(T t)
static <T,E extends Throwable>
Checked.Predicate<T,E>use(Checked.Predicate<T,E> o)
Shapes a lambda or method reference into an instance of this functional interface.-
Methods inherited from interface org.postgresql.pljava.internal.Checked
in, inBooleanReturning, inByteReturning, inCharReturning, inDoubleReturning, inFloatReturning, inIntReturning, inLongReturning, inReturning, inShortReturning
-
-
-
-
Method Detail
-
negate
default Checked.Predicate<T,E> negate()
Evaluates this predicate on the given argument.
-
ederWrap
default Predicate<T> ederWrap()
Description copied from interface:Checked
Wraps thisChecked
functional interfaces as its corresponding Java functional interfaceWT
, which possibly does not allow checked exceptions.Checked exceptions of type
EX
may still, in reality, be thrown. This method is not intended to be called directly; it is used transparently byin(...)
, which passes the wrapper type into code that requires it, but re-exposes the original checked exception type to the compiler.
-
use
static <T,E extends Throwable> Checked.Predicate<T,E> use(Checked.Predicate<T,E> o)
Shapes a lambda or method reference into an instance of this functional interface.This is simply an identity function that can take the place of a more unwieldy cast.
- Type Parameters:
E
- Least upper bound of exception types o can throw.- Parameters:
o
- The implementing lambda or method reference.
-
-