FileDocCategorySizeDatePackage
Duration.javaAPI DocAndroid 1.5 API2035Wed May 06 22:42:02 BST 2009com.android.internal.telephony.gsm.stk

Duration

public class Duration extends Object implements android.os.Parcelable
Class 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)

param
timeInterval Between 1 and 255 inclusive.

        this.timeInterval = timeInterval;
        this.timeUnit = timeUnit;
    
private Duration(android.os.Parcel in)

        timeInterval = in.readInt();
        timeUnit = TimeUnit.values()[in.readInt()];
    
Methods Summary
public intdescribeContents()

        return 0;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeInt(timeInterval);
        dest.writeInt(timeUnit.ordinal());