|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joda.time.contrib.i18n.Territory
public abstract class Territory
Provides time data for a specific territory, typically a country.
Many pieces of data used in dates and times varies by territory. This class provides access to that data.
Method Summary | |
---|---|
boolean |
equals(Object other)
Is this territory equal (by id and class) to another. |
static Territory |
forID(String id)
Gets a territory instance for the specified id. |
abstract int |
getBusinessWeekEnd()
Gets the day of week that the business week ends. |
abstract int |
getBusinessWeekStart()
Gets the day of week that the business week starts. |
abstract int |
getFirstDayOfWeek()
Gets the first day of the week. |
abstract String |
getID()
Gets the territory id. |
abstract int |
getWeekendEnd()
Gets the day of week that the weekend ends. |
abstract int |
getWeekendStart()
Gets the day of week that the weekend starts. |
DateTimeZone |
getZone()
Gets the time zone for the territory, selecting the zone of the most important city (the capital) if there are multiple zones. |
abstract DateTimeZone[] |
getZones()
Gets the time zones applicable for the territory. |
int |
hashCode()
Gets a suitable hashcode for this territory. |
String |
toString()
Outputs a string vesion of the territory. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Territory forID(String id)
The territory id must be one of those returned by getAvailableIDs.
id
- the ID of the territory, not null
IllegalArgumentException
- if the ID is not recognisedpublic abstract String getID()
public abstract DateTimeZone[] getZones()
public DateTimeZone getZone()
public abstract int getFirstDayOfWeek()
public abstract int getBusinessWeekStart()
public abstract int getBusinessWeekEnd()
public abstract int getWeekendStart()
public abstract int getWeekendEnd()
public boolean equals(Object other)
equals
in class Object
other
- the other object to compare to
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |