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