49 lines
1.4 KiB
Java
49 lines
1.4 KiB
Java
|
package com.google.android.libraries.places.api.model;
|
||
|
|
||
|
import android.os.Parcelable;
|
||
|
import android.text.TextUtils;
|
||
|
import com.google.android.libraries.places.internal.zzig;
|
||
|
import com.google.android.libraries.places.internal.zziy;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public abstract class AddressComponent implements Parcelable {
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public static abstract class Builder {
|
||
|
public AddressComponent build() {
|
||
|
AddressComponent zzc = zzc();
|
||
|
zzig.zzi(!zzc.getName().isEmpty(), "Name must not be empty.");
|
||
|
List<String> types = zzc.getTypes();
|
||
|
Iterator<String> it = types.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
zzig.zzi(!TextUtils.isEmpty(it.next()), "Types must not contain null or empty values.");
|
||
|
}
|
||
|
zzb(zziy.zzk(types));
|
||
|
return zzc();
|
||
|
}
|
||
|
|
||
|
public abstract String getShortName();
|
||
|
|
||
|
public abstract Builder setShortName(String str);
|
||
|
|
||
|
abstract Builder zzb(List list);
|
||
|
|
||
|
abstract AddressComponent zzc();
|
||
|
}
|
||
|
|
||
|
public static Builder builder(String str, List<String> list) {
|
||
|
zza zzaVar = new zza();
|
||
|
zzaVar.zza(str);
|
||
|
zzaVar.zzb(list);
|
||
|
return zzaVar;
|
||
|
}
|
||
|
|
||
|
public abstract String getName();
|
||
|
|
||
|
public abstract String getShortName();
|
||
|
|
||
|
public abstract List<String> getTypes();
|
||
|
}
|