Class CLocaleImpl

  • All Implemented Interfaces:
    CLocale

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

      Constructors 
      Constructor Description
      CLocaleImpl()  
    • 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
    • Constructor Detail

      • CLocaleImpl

        public CLocaleImpl()
    • 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