CultureInfo
Contents
[
Hide
]Inheritance: java.lang.Object
public class CultureInfo
Map for .Net’s System.Globalization.CultureInfo.
Constructors
Constructor | Description |
---|---|
CultureInfo(String cultureName) | Constructor with .Net-style Culture Name. |
CultureInfo(String cultureName, boolean useUserOverride) | Constructor with .Net-style Culture Name. |
CultureInfo(Locale locale) | Constructor with Java-style Locale. |
Methods
Method | Description |
---|---|
getDateTimeFormat() | Gets .Net-style DateTimeFormatInfo |
getLocale(System.Globalization.CultureInfo cultureInfo) | Gets java Locale from .Net-style CultureInfo |
CultureInfo(String cultureName)
public CultureInfo(String cultureName)
Constructor with .Net-style Culture Name.
Parameters:
Parameter | Type | Description |
---|---|---|
cultureName | java.lang.String |
CultureInfo(String cultureName, boolean useUserOverride)
public CultureInfo(String cultureName, boolean useUserOverride)
Constructor with .Net-style Culture Name.
Parameters:
Parameter | Type | Description |
---|---|---|
cultureName | java.lang.String | |
useUserOverride | boolean |
CultureInfo(Locale locale)
public CultureInfo(Locale locale)
Constructor with Java-style Locale.
Parameters:
Parameter | Type | Description |
---|---|---|
locale | java.util.Locale |
getDateTimeFormat()
public System.Globalization.DateTimeFormatInfo getDateTimeFormat()
Gets .Net-style DateTimeFormatInfo
Returns: DateTimeFormatInfo
getLocale(System.Globalization.CultureInfo cultureInfo)
public Locale getLocale(System.Globalization.CultureInfo cultureInfo)
Gets java Locale from .Net-style CultureInfo
Parameters:
Parameter | Type | Description |
---|---|---|
cultureInfo | CultureInfo |
Returns: java.util.Locale