jimu-decompiled/sources/com/google/common/collect/CollectPreconditions.java
2025-05-13 19:24:51 +02:00

35 lines
944 B
Java

package com.google.common.collect;
import com.google.common.base.Preconditions;
/* loaded from: classes.dex */
final class CollectPreconditions {
static void a(Object obj, Object obj2) {
if (obj == null) {
throw new NullPointerException("null key in entry: null=" + obj2);
}
if (obj2 != null) {
return;
}
throw new NullPointerException("null value in entry: " + obj + "=null");
}
static void b(int i, String str) {
if (i > 0) {
return;
}
throw new IllegalArgumentException(str + " must be positive but was: " + i);
}
static int a(int i, String str) {
if (i >= 0) {
return i;
}
throw new IllegalArgumentException(str + " cannot be negative but was: " + i);
}
static void a(boolean z) {
Preconditions.b(z, "no calls to next() since the last call to remove()");
}
}