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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedString(Locale locale) Gets the localized string.Gets the source (non-localized) string.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hipparchus.exception.Localizable
getLocalizedString
-
Constructor Details
-
DummyLocalizable
Simple constructor.- Parameters:
source- source text
-
-
Method Details
-
getSourceString
Gets the source (non-localized) string.- Specified by:
getSourceStringin interfaceLocalizable- Returns:
- the source string.
-
getLocalizedString
Gets the localized string.- Specified by:
getLocalizedStringin 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
-