49 lines
1.5 KiB
Java
49 lines
1.5 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.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public abstract class OpeningHours implements Parcelable {
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static abstract class Builder {
|
|
public OpeningHours build() {
|
|
OpeningHours zza = zza();
|
|
Iterator<String> it = zza.getWeekdayText().iterator();
|
|
while (it.hasNext()) {
|
|
zzig.zzi(!TextUtils.isEmpty(it.next()), "WeekdayText must not contain null or empty values.");
|
|
}
|
|
setPeriods(zziy.zzk(zza.getPeriods()));
|
|
setWeekdayText(zziy.zzk(zza.getWeekdayText()));
|
|
return zza();
|
|
}
|
|
|
|
public abstract List<Period> getPeriods();
|
|
|
|
public abstract List<String> getWeekdayText();
|
|
|
|
public abstract Builder setPeriods(List<Period> list);
|
|
|
|
public abstract Builder setWeekdayText(List<String> list);
|
|
|
|
abstract OpeningHours zza();
|
|
}
|
|
|
|
public static Builder builder() {
|
|
zzk zzkVar = new zzk();
|
|
zzkVar.setPeriods(new ArrayList());
|
|
zzkVar.setWeekdayText(new ArrayList());
|
|
return zzkVar;
|
|
}
|
|
|
|
public abstract List<Period> getPeriods();
|
|
|
|
public abstract List<String> getWeekdayText();
|
|
}
|