TimeInterval

public final class TimeInterval extends Object
implements Parcelable

Parcelable representing a time interval.

Inherited Constant Summary

Field Summary

public static final Creator<TimeInterval> CREATOR

Public Constructor Summary

TimeInterval(long startTimestamp, long endTimestamp)
Creates an instance of TimeInterval defined by given start and end timestamps.

Public Method Summary

long
getEndTimestamp()
Returns the end timestamp.
long
getStartTimestamp()
Returns the start timestamp.
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<TimeInterval> CREATOR

Public Constructors

public TimeInterval (long startTimestamp, long endTimestamp)

Creates an instance of TimeInterval defined by given start and end timestamps.

Parameters
startTimestamp Start time of the interval in milliseconds since epoch
endTimestamp End time of the interval in milliseconds since epoch

Public Methods

public long getEndTimestamp ()

Returns the end timestamp.

public long getStartTimestamp ()

Returns the start timestamp.

public void writeToParcel (Parcel dest, int flags)