Class DefaultLocaleable

  • All Implemented Interfaces:
    Localeable
    Direct Known Subclasses:
    LocaledText

    public class DefaultLocaleable
    extends java.lang.Object
    implements Localeable
    A default implementation of an object that keeps track of a locale.
    Author:
    Garret Wilson
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Locale getLocale()  
      void setLocale​(java.util.Locale locale)
      Sets the locale
      • Methods inherited from class java.lang.Object

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

      • DefaultLocaleable

        public DefaultLocaleable()
        Default constructor.
      • DefaultLocaleable

        public DefaultLocaleable​(java.util.Locale locale)
        Locale constructor.
        Parameters:
        locale - The locale or null if no locale is indicated.
    • Method Detail

      • getLocale

        public java.util.Locale getLocale()
        Specified by:
        getLocale in interface Localeable
        Returns:
        The locale or null if no locale is indicated.
      • setLocale

        public void setLocale​(java.util.Locale locale)
        Sets the locale
        Specified by:
        setLocale in interface Localeable
        Parameters:
        locale - The locale or null if no locale is indicated.