public class RsYear 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 |
|---|
RsYear()
Constructor.
|
RsYear(Calendar calendar)
Constructor.
|
RsYear(Date date)
Constructor.
|
RsYear(int year)
Constructor.
|
RsYear(long timeInMillis)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureBegin()
Adjusts the time stamp to the start of the year.
|
boolean |
equals(Object o) |
RsDate |
getBegin()
Returns the begin of this month.
|
RsDate |
getEnd()
Returns the end of this month.
|
int |
getIntKey()
Returns the key of this month.
|
String |
getKey()
Returns the key of this month.
|
RsYear |
getNext()
Returns the next month.
|
RsYear |
getPrevious()
Returns the previous month.
|
static RsYear |
getYear(int year)
Returns a year object for the given key.
|
static RsYear |
getYear(String key)
Returns a year object for the given key.
|
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 RsYear()
public RsYear(Date date)
public RsYear(long timeInMillis)
public RsYear(Calendar calendar)
calendar - public RsYear(int year)
protected void ensureBegin()
public String getKey()
public int getIntKey()
public RsDate getBegin()
public RsDate getEnd()
public RsYear getNext()
public RsYear getPrevious()
public boolean equals(Object o)
equals in class GregorianCalendarpublic int hashCode()
hashCode in class GregorianCalendarpublic static RsYear getYear(String key)
key - key of yearpublic static RsYear getYear(int year)
year - year numberCopyright © 2014. All rights reserved.