mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 01:52:26 -06:00
33 lines
1 KiB
Java
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);
|
|
}
|
|
};
|
|
}
|
|
}
|