Rabbit-R1/original r1/java/sources/org/webrtc/Predicate.java
2024-05-21 17:08:36 -04:00

33 lines
1 KiB
Java

package org.webrtc;
/* loaded from: classes3.dex */
public interface Predicate<T> {
boolean test(T t);
default Predicate<T> or(final Predicate<? super T> predicate) {
return new Predicate<T>() { // from class: org.webrtc.Predicate.1
@Override // org.webrtc.Predicate
public boolean test(T t) {
return Predicate.this.test(t) || predicate.test(t);
}
};
}
default Predicate<T> and(final Predicate<? super T> predicate) {
return new Predicate<T>() { // from class: org.webrtc.Predicate.2
@Override // org.webrtc.Predicate
public boolean test(T t) {
return Predicate.this.test(t) && predicate.test(t);
}
};
}
default Predicate<T> negate() {
return new Predicate<T>() { // from class: org.webrtc.Predicate.3
@Override // org.webrtc.Predicate
public boolean test(T t) {
return !Predicate.this.test(t);
}
};
}
}