Files
rr3-apk/decompiled/sources/androidx/core/util/Predicate.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

95 lines
3.6 KiB
Java

package androidx.core.util;
import android.annotation.SuppressLint;
import java.util.Objects;
@SuppressLint({"UnknownNullness"})
/* loaded from: classes.dex */
public interface Predicate<T> {
boolean test(T t);
@SuppressLint({"MissingNullability"})
default Predicate<T> and(@SuppressLint({"MissingNullability"}) final Predicate<? super T> predicate) {
Objects.requireNonNull(predicate);
return new Predicate() { // from class: androidx.core.util.Predicate$$ExternalSyntheticLambda3
@Override // androidx.core.util.Predicate
public final boolean test(Object obj) {
boolean lambda$and$0;
lambda$and$0 = Predicate.this.lambda$and$0(predicate, obj);
return lambda$and$0;
}
};
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Multi-variable type inference failed */
/* synthetic */ default boolean lambda$and$0(Predicate predicate, Object obj) {
return test(obj) && predicate.test(obj);
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Multi-variable type inference failed */
/* synthetic */ default boolean lambda$negate$1(Object obj) {
return !test(obj);
}
@SuppressLint({"MissingNullability"})
default Predicate<T> negate() {
return new Predicate() { // from class: androidx.core.util.Predicate$$ExternalSyntheticLambda4
@Override // androidx.core.util.Predicate
public final boolean test(Object obj) {
boolean lambda$negate$1;
lambda$negate$1 = Predicate.this.lambda$negate$1(obj);
return lambda$negate$1;
}
};
}
@SuppressLint({"MissingNullability"})
default Predicate<T> or(@SuppressLint({"MissingNullability"}) final Predicate<? super T> predicate) {
Objects.requireNonNull(predicate);
return new Predicate() { // from class: androidx.core.util.Predicate$$ExternalSyntheticLambda0
@Override // androidx.core.util.Predicate
public final boolean test(Object obj) {
boolean lambda$or$2;
lambda$or$2 = Predicate.this.lambda$or$2(predicate, obj);
return lambda$or$2;
}
};
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Multi-variable type inference failed */
/* synthetic */ default boolean lambda$or$2(Predicate predicate, Object obj) {
return test(obj) || predicate.test(obj);
}
@SuppressLint({"MissingNullability"})
static <T> Predicate<T> isEqual(@SuppressLint({"MissingNullability"}) final Object obj) {
if (obj == null) {
return new Predicate() { // from class: androidx.core.util.Predicate$$ExternalSyntheticLambda1
@Override // androidx.core.util.Predicate
public final boolean test(Object obj2) {
boolean isNull;
isNull = Objects.isNull(obj2);
return isNull;
}
};
}
return new Predicate() { // from class: androidx.core.util.Predicate$$ExternalSyntheticLambda2
@Override // androidx.core.util.Predicate
public final boolean test(Object obj2) {
boolean equals;
equals = obj.equals(obj2);
return equals;
}
};
}
@SuppressLint({"MissingNullability"})
static <T> Predicate<T> not(@SuppressLint({"MissingNullability"}) Predicate<? super T> predicate) {
Objects.requireNonNull(predicate);
return predicate.negate();
}
}