de.team33.patterns.exceptional.dione.XPredicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of exceptional-dione Show documentation
Show all versions of exceptional-dione Show documentation
Contains variants of basic functional constructs that can throw checked exceptions,
tools for converting them to their more manageable counterparts, exception types useful for this,
and some tools for exception handling.
package de.team33.patterns.exceptional.dione;
/**
* A kind of predicate that allows to throw a checked exception.
*
* @see java.util.function.Predicate
*/
@FunctionalInterface
public interface XPredicate {
/**
* Performs this operation on the given argument and returns a {@code boolean} result.
*
* @throws X if so.
* @see java.util.function.Predicate#test(Object)
*/
boolean test(T t) throws X;
}