AI-generated Key Takeaways
-
TimeInterval is a Parcelable class representing a time interval.
-
An instance of TimeInterval is created using a start and end timestamp.
-
The class provides methods to retrieve the start and end timestamps.
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.