49 lines
1.2 KiB
Java
49 lines
1.2 KiB
Java
|
package com.google.android.libraries.places.internal;
|
||
|
|
||
|
import java.io.IOException;
|
||
|
import java.util.Iterator;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public class zzib {
|
||
|
private final String zza;
|
||
|
|
||
|
public Appendable zzb(Appendable appendable, Iterator it) throws IOException {
|
||
|
if (it.hasNext()) {
|
||
|
appendable.append(zza(it.next()));
|
||
|
while (it.hasNext()) {
|
||
|
appendable.append(this.zza);
|
||
|
appendable.append(zza(it.next()));
|
||
|
}
|
||
|
}
|
||
|
return appendable;
|
||
|
}
|
||
|
|
||
|
public final String zzf(Iterable iterable) {
|
||
|
Iterator it = iterable.iterator();
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
try {
|
||
|
zzb(sb, it);
|
||
|
return sb.toString();
|
||
|
} catch (IOException e) {
|
||
|
throw new AssertionError(e);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public CharSequence zza(Object obj) {
|
||
|
return obj instanceof CharSequence ? (CharSequence) obj : obj.toString();
|
||
|
}
|
||
|
|
||
|
public final zzib zzd() {
|
||
|
return new zzhz(this, this);
|
||
|
}
|
||
|
|
||
|
public static zzib zzc(String str) {
|
||
|
return new zzib(str);
|
||
|
}
|
||
|
|
||
|
private zzib(String str) {
|
||
|
this.zza = str;
|
||
|
}
|
||
|
}
|