JML

java.util
Class Locale

java.lang.Object
  extended byjava.util.Locale
All Implemented Interfaces:
Cloneable, Serializable

public final class Locale
extends Object
implements Cloneable, Serializable


Nested Class Summary
private static class Locale.LocaleNameGetter
           
 
Field Summary
private static ConcurrentHashMap cache
           
static Locale CANADA
           
static Locale CANADA_FRENCH
           
static Locale CHINA
           
static Locale CHINESE
           
private  String country
           
private static Locale defaultLocale
           
private static int DISPLAY_COUNTRY
           
private static int DISPLAY_LANGUAGE
           
private static int DISPLAY_VARIANT
           
static Locale ENGLISH
           
static Locale FRANCE
           
static Locale FRENCH
           
static Locale GERMAN
           
static Locale GERMANY
           
private  int hashcode
           
private  int hashCodeValue
           
private static String[] isoCountries
           
private static String[] isoLanguages
           
static Locale ITALIAN
           
static Locale ITALY
           
static Locale JAPAN
           
static Locale JAPANESE
           
static Locale KOREA
           
static Locale KOREAN
           
private  String language
           
static Locale PRC
           
static Locale ROOT
           
(package private) static long serialVersionUID
           
static Locale SIMPLIFIED_CHINESE
           
static Locale TAIWAN
           
static Locale TRADITIONAL_CHINESE
           
static Locale UK
           
static Locale US
           
private  String variant
           
 
Constructor Summary
  Locale(String)
           
  Locale(String, String)
           
private Locale(String, String, boolean)
           
  Locale(String, String, String)
           
 
Method Summary
 Object clone()
           
private static String[] composeList(MessageFormat, String[])
           
private  String convertOldISOCodes(String)
           
private static Locale createSingleton(String, String, String)
           
 boolean equals(Object)
           
private static String formatList(String[], String, String)
           
static Locale[] getAvailableLocales()
           
 String getCountry()
           
static Locale getDefault()
           
 String getDisplayCountry()
           
 String getDisplayCountry(Locale)
           
 String getDisplayLanguage()
           
 String getDisplayLanguage(Locale)
           
 String getDisplayName()
           
 String getDisplayName(Locale)
           
private  String getDisplayString(String, Locale, int)
           
 String getDisplayVariant()
           
 String getDisplayVariant(Locale)
           
private  String[] getDisplayVariantArray(sun.util.resources.OpenListResourceBundle, Locale)
           
(package private) static Locale getInstance(String, String, String)
           
private static String[] getISO2Table(String)
           
private static String getISO3Code(String, String)
           
 String getISO3Country()
           
 String getISO3Language()
           
static String[] getISOCountries()
           
static String[] getISOLanguages()
           
 String getLanguage()
           
 String getVariant()
           
 int hashCode()
           
private  Object readResolve()
           
static void setDefault(Locale)
           
private  String toLowerCase(String)
           
 String toString()
           
private  String toUpperCase(String)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KOREA

public static final Locale KOREA

KOREAN

public static final Locale KOREAN

ENGLISH

public static final Locale ENGLISH

CHINA

public static final Locale CHINA

JAPANESE

public static final Locale JAPANESE

ITALY

public static final Locale ITALY

GERMANY

public static final Locale GERMANY

isoLanguages

private static volatile String[] isoLanguages

JAPAN

public static final Locale JAPAN

GERMAN

public static final Locale GERMAN

DISPLAY_COUNTRY

private static final int DISPLAY_COUNTRY

ITALIAN

public static final Locale ITALIAN

isoCountries

private static volatile String[] isoCountries

ROOT

public static final Locale ROOT

US

public static final Locale US

FRENCH

public static final Locale FRENCH

DISPLAY_VARIANT

private static final int DISPLAY_VARIANT

CANADA_FRENCH

public static final Locale CANADA_FRENCH

hashCodeValue

private transient volatile int hashCodeValue

country

private final String country

DISPLAY_LANGUAGE

private static final int DISPLAY_LANGUAGE

serialVersionUID

static final long serialVersionUID

TAIWAN

public static final Locale TAIWAN

defaultLocale

private static Locale defaultLocale

FRANCE

public static final Locale FRANCE

UK

public static final Locale UK

variant

private final String variant

TRADITIONAL_CHINESE

public static final Locale TRADITIONAL_CHINESE

language

private final String language

CANADA

public static final Locale CANADA

SIMPLIFIED_CHINESE

public static final Locale SIMPLIFIED_CHINESE

CHINESE

public static final Locale CHINESE

hashcode

private volatile int hashcode

cache

private static final ConcurrentHashMap cache

PRC

public static final Locale PRC
Constructor Detail

Locale

public Locale(String,
              String,
              String)

Locale

public Locale(String,
              String)

Locale

public Locale(String)

Locale

private Locale(String,
               String,
               boolean)
Method Detail

createSingleton

private static Locale createSingleton(String,
                                      String,
                                      String)

getInstance

static Locale getInstance(String,
                          String,
                          String)

getDefault

public static Locale getDefault()

setDefault

public static void setDefault(Locale)

getAvailableLocales

public static Locale[] getAvailableLocales()

getISOCountries

public static String[] getISOCountries()

getISOLanguages

public static String[] getISOLanguages()

getISO2Table

private static final String[] getISO2Table(String)

getLanguage

public String getLanguage()

getCountry

public String getCountry()

getVariant

public String getVariant()

toString

public final String toString()
Overrides:
toString in class Object

getISO3Language

public String getISO3Language()
                       throws MissingResourceException
Throws:
MissingResourceException

getISO3Country

public String getISO3Country()
                      throws MissingResourceException
Throws:
MissingResourceException

getISO3Code

private static final String getISO3Code(String,
                                        String)

getDisplayLanguage

public final String getDisplayLanguage()

getDisplayLanguage

public String getDisplayLanguage(Locale)

getDisplayCountry

public final String getDisplayCountry()

getDisplayCountry

public String getDisplayCountry(Locale)

getDisplayString

private String getDisplayString(String,
                                Locale,
                                int)

getDisplayVariant

public final String getDisplayVariant()

getDisplayVariant

public String getDisplayVariant(Locale)

getDisplayName

public final String getDisplayName()

getDisplayName

public String getDisplayName(Locale)

clone

public Object clone()
Overrides:
clone in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object)
Overrides:
equals in class Object

getDisplayVariantArray

private String[] getDisplayVariantArray(sun.util.resources.OpenListResourceBundle,
                                        Locale)

formatList

private static String formatList(String[],
                                 String,
                                 String)

composeList

private static String[] composeList(MessageFormat,
                                    String[])

readResolve

private Object readResolve()
                    throws ObjectStreamException
Throws:
ObjectStreamException

toLowerCase

private String toLowerCase(String)

toUpperCase

private String toUpperCase(String)

convertOldISOCodes

private String convertOldISOCodes(String)

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.