public final class

TimeInterval

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.wallet.wobs.TimeInterval

Class Overview

Parcelable representing a time interval.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<TimeInterval> CREATOR
Public Constructors
TimeInterval(long startTimestamp, long endTimestamp)
Creates an instance of TimeInterval defined by given start and end timestamps.
Public Methods
long getEndTimestamp()
long getStartTimestamp()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

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 long: Start time of the interval in milliseconds since epoch
endTimestamp long: End time of the interval in milliseconds since epoch

Public Methods

public long getEndTimestamp ()

Returns
long the end timestamp

public long getStartTimestamp ()

Returns
long the start timestamp

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int