mobi.voiceassistant.client.model
Class Date
java.lang.Object
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
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
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)
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