mobi.voiceassistant.client.model
Class Time

java.lang.Object
  extended by mobi.voiceassistant.client.model.Time
All Implemented Interfaces:
Parcelable

public class Time
extends Object
implements Parcelable

Created with IntelliJ IDEA. User: morfeusys Date: 12.07.12 Time: 10:59


Nested Class Summary
static class Time.Part
           
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<Time> CREATOR
           
 int dayOffset
           
 int hour
           
 int minute
           
 Time.Part part
           
 int second
           
static String TOKEN_PART_OF_DAY
           
static String TOKEN_TIME_HALF_HOUR
           
static String TOKEN_TIME_HOUR
           
static String TOKEN_TIME_MINUTE
           
static String TOKEN_TIME_UNIT
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Time()
           
Time(Calendar calendar)
           
Time(Calendar calendar, Time.Part part)
           
Time(int hour, int minute, int second)
           
Time(int hour, int minute, int second, Time.Part part)
           
Time(long time)
           
Time(String time)
           
Time(String time, String timezone)
           
Time(Time time)
           
 
Method Summary
 int describeContents()
           
 Calendar getCalendar()
           
 String toString()
           
 void writeToParcel(Parcel parcel, int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOKEN_TIME_UNIT

public static final String TOKEN_TIME_UNIT
See Also:
Constant Field Values

TOKEN_TIME_HOUR

public static final String TOKEN_TIME_HOUR
See Also:
Constant Field Values

TOKEN_TIME_HALF_HOUR

public static final String TOKEN_TIME_HALF_HOUR
See Also:
Constant Field Values

TOKEN_TIME_MINUTE

public static final String TOKEN_TIME_MINUTE
See Also:
Constant Field Values

TOKEN_PART_OF_DAY

public static final String TOKEN_PART_OF_DAY
See Also:
Constant Field Values

hour

public int hour

minute

public int minute

second

public int second

dayOffset

public int dayOffset

part

public Time.Part part

CREATOR

public static final Parcelable.Creator<Time> CREATOR
Constructor Detail

Time

public Time()

Time

public Time(Time time)

Time

public Time(long time)

Time

public Time(String time)

Time

public Time(String time,
            String timezone)

Time

public Time(Calendar calendar)

Time

public Time(Calendar calendar,
            Time.Part part)

Time

public Time(int hour,
            int minute,
            int second)

Time

public Time(int hour,
            int minute,
            int second,
            Time.Part part)
Method Detail

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable

writeToParcel

public void writeToParcel(Parcel parcel,
                          int i)
Specified by:
writeToParcel in interface Parcelable

getCalendar

public Calendar getCalendar()

toString

public String toString()
Overrides:
toString in class Object