mobi.voiceassistant.client.model
Class Date

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

public class Date
extends Object
implements Parcelable

Created with IntelliJ IDEA. User: morfeusys Date: 12.07.12 Time: 15:23


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
static Parcelable.Creator<Date> CREATOR
           
 int day
           
 int month
           
 long offset
           
static String TOKEN_DAY
           
static String TOKEN_MONTH
           
static String TOKEN_NEXT_PAST
           
static String TOKEN_NUMBER
           
static String TOKEN_NUMBER_NUMERIC
           
static String TOKEN_UNIT
           
static String TOKEN_WEEK
           
static String TOKEN_YEAR
           
 int year
           
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
Date()
           
Date(Calendar calendar)
           
Date(Calendar calendar, long offset)
           
Date(Date date)
           
Date(int day, int month, int year)
           
Date(int day, int month, int year, long offset)
           
Date(long date)
           
Date(long date, long offset)
           
 
Method Summary
 int describeContents()
           
 boolean equals(Object o)
           
 String format(String pattern)
           
 Calendar getCalendar()
           
 Calendar getCalendar(boolean relative)
           
 Calendar[] getDateRange()
           
 int getDaysBetween()
           
 long getDifference()
           
 int hashCode()
           
 boolean isPast()
           
 boolean isRange()
           
 boolean isToday()
           
 void writeToParcel(Parcel parcel, int i)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TOKEN_NUMBER

public static final String TOKEN_NUMBER
See Also:
Constant Field Values

TOKEN_MONTH

public static final String TOKEN_MONTH
See Also:
Constant Field Values

TOKEN_DAY

public static final String TOKEN_DAY
See Also:
Constant Field Values

TOKEN_WEEK

public static final String TOKEN_WEEK
See Also:
Constant Field Values

TOKEN_UNIT

public static final String TOKEN_UNIT
See Also:
Constant Field Values

TOKEN_NEXT_PAST

public static final String TOKEN_NEXT_PAST
See Also:
Constant Field Values

TOKEN_YEAR

public static final String TOKEN_YEAR
See Also:
Constant Field Values

TOKEN_NUMBER_NUMERIC

public static final String TOKEN_NUMBER_NUMERIC
See Also:
Constant Field Values

day

public final int day

month

public final int month

year

public final int year

offset

public final long offset

CREATOR

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

Date

public Date()

Date

public Date(Date date)

Date

public Date(Calendar calendar)

Date

public Date(Calendar calendar,
            long offset)

Date

public Date(long date)

Date

public Date(long date,
            long offset)

Date

public Date(int day,
            int month,
            int year)

Date

public Date(int day,
            int month,
            int year,
            long offset)
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

isToday

public boolean isToday()

isPast

public boolean isPast()

getDifference

public long getDifference()

getDaysBetween

public int getDaysBetween()

getCalendar

public Calendar getCalendar()

format

public String format(String pattern)

getCalendar

public Calendar getCalendar(boolean relative)

getDateRange

public Calendar[] getDateRange()

isRange

public boolean isRange()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object