Class LocaleImpl

  • All Implemented Interfaces:
    CLocale

    public class LocaleImpl
    extends java.lang.Object
    implements CLocale
    • Constructor Summary

      Constructors 
      Constructor Description
      LocaleImpl​(java.lang.String id, LanguageTag tag)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String id()
      Application's own identifier for the locale, e.g.
      LanguageTag tag()
      Language tag that has been parsed and resolved.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • LocaleImpl

        public LocaleImpl​(java.lang.String id,
                          LanguageTag tag)
    • Method Detail

      • id

        public java.lang.String id()
        Description copied from interface: CLocale
        Application's own identifier for the locale, e.g. 'en_US', 'fr-CA', etc. We preserve this since applications may use it as a unique key to resolve translated messages, and may be forced to use a legacy identifier.
        Specified by:
        id in interface CLocale
      • tag

        public LanguageTag tag()
        Description copied from interface: CLocale
        Language tag that has been parsed and resolved. Parsing canonicalizes the subtags, while resolution includes substituting language and territory aliases and adding likely subtags.
        Specified by:
        tag in interface CLocale