All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zalando.fauxpas.ThrowingBiPredicate Maven / Gradle / Ivy

The newest version!
package org.zalando.fauxpas;

import lombok.SneakyThrows;
import org.apiguardian.api.API;

import java.util.function.BiPredicate;

import static org.apiguardian.api.API.Status.STABLE;

@API(status = STABLE)
@FunctionalInterface
public interface ThrowingBiPredicate extends BiPredicate {

    boolean tryTest(T t, U u) throws X;

    @Override
    @SneakyThrows
    default boolean test(final T t, final U u) {
        return tryTest(t, u);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy