org.rx.util.function.PredicateFuncWithIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxlib Show documentation
Show all versions of rxlib Show documentation
A set of utilities for Java
package org.rx.util.function;
import lombok.SneakyThrows;
@FunctionalInterface
public interface PredicateFuncWithIndex {
boolean invoke(T t, int index) throws Throwable;
@SneakyThrows
default boolean test(T t, int index) {
return invoke(t, index);
}
}