java.util.function.Predicate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jtransc-rt Show documentation
Show all versions of jtransc-rt Show documentation
JVM AOT compiler currently generating JavaScript, C++, Haxe, with initial focus on Kotlin and games.
package java.util.function;
import java.util.Objects;
@FunctionalInterface
public interface Predicate {
boolean test(T t);
default Predicate and(Predicate super T> that) {
return null;
}
default Predicate negate() {
return null;
}
default Predicate or(Predicate super T> that) {
return null;
}
static Predicate isEqual(Object targetRef) {
return null;
}
/*
default Predicate and(Predicate super T> that) {
Objects.requireNonNull(that);
return (t) -> test(t) && that.test(t);
}
default Predicate negate() {
return (t) -> !test(t);
}
default Predicate or(Predicate super T> that) {
Objects.requireNonNull(that);
return (t) -> test(t) || that.test(t);
}
static Predicate isEqual(Object targetRef) {
return (targetRef != null) ? object -> targetRef.equals(object) : Objects::isNull;
}
*/
}