public class ZendriveShiftInterval extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<ZendriveShiftInterval> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ZendriveShiftInterval(ZendriveShiftTime startTime,
ZendriveShiftTime endTime)
Creates a
ZendriveShiftInterval object with the given start and end time. |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(Object o) |
ZendriveShiftTime |
getEndTime()
Get the end time of the interval.
|
ZendriveShiftTime |
getStartTime()
Get the start time of the interval.
|
int |
hashCode() |
String |
toString() |
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<ZendriveShiftInterval> CREATOR
public ZendriveShiftInterval(@NonNull ZendriveShiftTime startTime, @NonNull ZendriveShiftTime endTime)
ZendriveShiftInterval
object with the given start and end time.startTime
- Start time of the interval. Represented by ZendriveShiftTime
.endTime
- End time of the interval. Represented by ZendriveShiftTime
.public ZendriveShiftTime getStartTime()
public ZendriveShiftTime getEndTime()
public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable