72 lines
2.1 KiB
Java
72 lines
2.1 KiB
Java
|
package com.google.android.gms.internal.firebase_ml;
|
||
|
|
||
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
||
|
import java.util.Arrays;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zzkl {
|
||
|
private final String className;
|
||
|
private final zzkm zzabd;
|
||
|
private zzkm zzabe;
|
||
|
private boolean zzabf;
|
||
|
|
||
|
private zzkl(String str) {
|
||
|
zzkm zzkmVar = new zzkm();
|
||
|
this.zzabd = zzkmVar;
|
||
|
this.zzabe = zzkmVar;
|
||
|
this.zzabf = false;
|
||
|
this.className = (String) zzks.checkNotNull(str);
|
||
|
}
|
||
|
|
||
|
public final zzkl zzh(String str, Object obj) {
|
||
|
return zzi(str, obj);
|
||
|
}
|
||
|
|
||
|
public final zzkl zza(String str, boolean z) {
|
||
|
return zzi(str, String.valueOf(z));
|
||
|
}
|
||
|
|
||
|
public final zzkl zza(String str, float f) {
|
||
|
return zzi(str, String.valueOf(f));
|
||
|
}
|
||
|
|
||
|
public final zzkl zzb(String str, int i) {
|
||
|
return zzi(str, String.valueOf(i));
|
||
|
}
|
||
|
|
||
|
public final String toString() {
|
||
|
StringBuilder sb = new StringBuilder(32);
|
||
|
sb.append(this.className);
|
||
|
sb.append(UrlTreeKt.componentParamPrefixChar);
|
||
|
zzkm zzkmVar = this.zzabd.zzabg;
|
||
|
String str = "";
|
||
|
while (zzkmVar != null) {
|
||
|
Object obj = zzkmVar.value;
|
||
|
sb.append(str);
|
||
|
if (zzkmVar.name != null) {
|
||
|
sb.append(zzkmVar.name);
|
||
|
sb.append('=');
|
||
|
}
|
||
|
if (obj != null && obj.getClass().isArray()) {
|
||
|
String deepToString = Arrays.deepToString(new Object[]{obj});
|
||
|
sb.append((CharSequence) deepToString, 1, deepToString.length() - 1);
|
||
|
} else {
|
||
|
sb.append(obj);
|
||
|
}
|
||
|
zzkmVar = zzkmVar.zzabg;
|
||
|
str = ", ";
|
||
|
}
|
||
|
sb.append(UrlTreeKt.componentParamSuffixChar);
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
private final zzkl zzi(String str, Object obj) {
|
||
|
zzkm zzkmVar = new zzkm();
|
||
|
this.zzabe.zzabg = zzkmVar;
|
||
|
this.zzabe = zzkmVar;
|
||
|
zzkmVar.value = obj;
|
||
|
zzkmVar.name = (String) zzks.checkNotNull(str);
|
||
|
return this;
|
||
|
}
|
||
|
}
|