Durationpublic class Duration extends Object implements android.os.ParcelableClass for representing "Duration" object for STK.
{@hide} |
Fields Summary |
---|
public int | timeInterval | public TimeUnit | timeUnit | public static final Parcelable.Creator | CREATOR |
Constructors Summary |
---|
public Duration(int timeInterval, TimeUnit timeUnit)
this.timeInterval = timeInterval;
this.timeUnit = timeUnit;
| private Duration(android.os.Parcel in)
timeInterval = in.readInt();
timeUnit = TimeUnit.values()[in.readInt()];
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeInt(timeInterval);
dest.writeInt(timeUnit.ordinal());
|
|