Back to project page android-async-google-places.
The source code is released under:
Apache License
If you think the Android project android-async-google-places listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package io.github.axxiss.places.model; //w w w .j a v a 2s . com import android.os.Parcel; import android.os.Parcelable; /** * A period represents a period of time when a {@link io.github.axxiss.places.model.Place} is open * or closed. * * @author Axxiss */ public class Period implements Parcelable { private PeriodData open; private PeriodData close; /** * Returns a pair of day and time objects describing when the Place opens: * * @return */ public PeriodData getOpen() { return open; } /** * Returns a pair of day and time objects describing when the Place closes: * * @return */ public PeriodData getClose() { return close; } protected Period(Parcel in) { open = (PeriodData) in.readValue(PeriodData.class.getClassLoader()); close = (PeriodData) in.readValue(PeriodData.class.getClassLoader()); } public int describeContents() { return 0; } public void writeToParcel(Parcel dest, int flags) { dest.writeValue(open); dest.writeValue(close); } public static final Parcelable.Creator<Period> CREATOR = new Parcelable.Creator<Period>() { public Period createFromParcel(Parcel in) { return new Period(in); } public Period[] newArray(int size) { return new Period[size]; } }; }