Documentation of 'org.apache.commons.math3.exception.util.DummyLocalizable' Java class
DummyLocalizable
org.apache.commons.math3.exception.util

Class DummyLocalizable

  • All Implemented Interfaces:
    java.io.Serializable, Localizable


    public class DummyLocalizable
    extends java.lang.Object
    implements Localizable
    Dummy implementation of the Localizable interface, without localization.
    Since:
    2.2
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      DummyLocalizable(java.lang.String source)
      Simple constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getLocalizedString(java.util.Locale locale)
      Gets the localized string.
      java.lang.String getSourceString()
      Gets the source (non-localized) string.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DummyLocalizable

        public DummyLocalizable(java.lang.String source)
        Simple constructor.
        Parameters:
        source - source text
    • Method Detail

      • getSourceString

        public java.lang.String getSourceString()
        Gets the source (non-localized) string.
        Specified by:
        getSourceString in interface Localizable
        Returns:
        the source string.
      • getLocalizedString

        public java.lang.String getLocalizedString(java.util.Locale locale)
        Gets the localized string.
        Specified by:
        getLocalizedString in interface Localizable
        Parameters:
        locale - locale into which to get the string.
        Returns:
        the localized string or the source string if no localized version is available.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.