public class PoemLocale extends Object
Locale for use within Melati.| Modifier and Type | Field and Description |
|---|---|
static PoemLocale |
HERE
Default Locale: GB.
|
| Constructor and Description |
|---|
PoemLocale(Locale locale)
Constructor given a non-null Locale.
|
| Modifier and Type | Method and Description |
|---|---|
DateFormat |
dateFormat(int style) |
boolean |
equals(Object o) |
static PoemLocale |
from(Locale locale) |
static PoemLocale |
fromLanguageTag(String tag)
Creates a melati locale from a language tag as defined in RFC3066.
|
int |
hashCode()
Delegated to Locale.
|
Locale |
locale() |
String |
monthName(int monthNum) |
String |
shortMonthName(int monthNum) |
DateFormat |
timestampFormat(int style) |
String |
toString()
Delegated to Locale.
|
public static final PoemLocale HERE
public PoemLocale(Locale locale)
locale - The Locale to base ours on.public static PoemLocale fromLanguageTag(String tag)
tag - A language tag, for example, "en-gb"public static PoemLocale from(Locale locale)
public final Locale locale()
public String monthName(int monthNum)
monthNum - numeric monthpublic String shortMonthName(int monthNum)
monthNum - numeric monthpublic DateFormat dateFormat(int style)
style - as defined in DateFormatpublic DateFormat timestampFormat(int style)
style - as defined in DateFormatpublic int hashCode()
hashCode in class Object{@inheritDoc},
Object.hashCode()public boolean equals(Object o)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()Copyright © 2000–2021 PanEris. All rights reserved.