Class DummyLocalizable
java.lang.Object
org.apache.commons.math.exception.util.DummyLocalizable
- All Implemented Interfaces:
Serializable,Localizable
Dummy implementation of the
Localizable interface, without localization.- Since:
- 2.2
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedString(Locale locale) Get the localized string.Get the source (non-localized) string.toString()
-
Constructor Details
-
DummyLocalizable
Simple constructor.- Parameters:
source- source text
-
-
Method Details
-
getSourceString
Get the source (non-localized) string.- Specified by:
getSourceStringin interfaceLocalizable- Returns:
- source string
-
getLocalizedString
Get the localized string.- Specified by:
getLocalizedStringin interfaceLocalizable- Parameters:
locale- locale into which to get the string- Returns:
- localized string or the source string if no localized version is available
-
toString
-