public class RsMonth extends RsDate
AD, BCALL_STYLES, AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, LONG, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SHORT, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET| Constructor and Description |
|---|
RsMonth()
Constructor.
|
RsMonth(Calendar calendar)
Constructor.
|
RsMonth(Date date)
Constructor.
|
RsMonth(int month,
int year)
Constructor.
|
RsMonth(long timeInMillis)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureBegin()
Adjusts the time stamp to the start of the month.
|
boolean |
equals(Object o) |
RsDate |
getBegin()
Returns the begin of this month.
|
RsDate |
getEnd()
Returns the end of this month.
|
String |
getKey()
Returns the key of this month.
|
static RsMonth |
getMonth(String key)
Returns a month object for the given key.
|
RsMonth |
getNext()
Returns the next month.
|
RsMonth |
getPrevious()
Returns the previous month.
|
int |
hashCode() |
String |
toString() |
add, clone, computeFields, computeTime, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, getTimeZone, getWeeksInWeekYear, getWeekYear, isLeapYear, isWeekDateSupported, roll, roll, setGregorianChange, setTimeZone, setWeekDateafter, before, clear, clear, compareTo, complete, get, getAvailableLocales, getDisplayName, getDisplayNames, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, internalGet, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillispublic RsMonth()
public RsMonth(Date date)
public RsMonth(long timeInMillis)
public RsMonth(Calendar calendar)
calendar - public RsMonth(int month,
int year)
protected void ensureBegin()
public String getKey()
public RsDate getBegin()
public RsDate getEnd()
public RsMonth getNext()
public RsMonth getPrevious()
public boolean equals(Object o)
equals in class GregorianCalendarpublic int hashCode()
hashCode in class GregorianCalendarCopyright © 2014. All rights reserved.