public class Duration
extends java.lang.Object
implements android.os.Parcelable
TimeUnit
object specifies time unit and value
field indicates the value.
For example value = 100, unit = MINUTES or value = 1, unit = HOUR.Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Duration> |
CREATOR |
java.util.concurrent.TimeUnit |
unit |
long |
value |
Constructor and Description |
---|
Duration(java.util.concurrent.TimeUnit unit,
long value) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public final java.util.concurrent.TimeUnit unit
public final long value
public static final android.os.Parcelable.Creator<Duration> CREATOR
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable