Top Description Fields Constructors Methods
org.apache.commons.math3.exception.util

public Class DummyLocalizable

extends Object
implements Localizable
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.exception.util.Localizable, java.io.Serializable
Imports
java.util.Locale

Dummy implementation of the Localizable interface, without localization.
Since
2.2

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Serializable version identifier.

private final String
source

Source string.

Constructor Summary

AccessConstructor and Description
public
DummyLocalizable(final String
source text
source
)

Simple constructor.

Method Summary

Modifier and TypeMethod and Description
public String
getLocalizedString(Locale
locale into which to get the string.
locale
)

Implements org.apache.commons.math3.exception.util.Localizable.getLocalizedString.

Gets the localized string.

public String
getSourceString()

Implements org.apache.commons.math3.exception.util.Localizable.getSourceString.

Gets the source (non-localized) string.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Serializable version identifier.

sourceback to summary
private final String source

Source string.

Constructor Detail

DummyLocalizableback to summary
public DummyLocalizable(final String source)

Simple constructor.

Parameters
source:String

source text

Method Detail

getLocalizedStringback to summary
public String getLocalizedString(Locale locale)

Implements org.apache.commons.math3.exception.util.Localizable.getLocalizedString.

Doc from org.apache.commons.math3.exception.util.Localizable.getLocalizedString.

Gets the localized string.

Parameters
locale:Locale

locale into which to get the string.

Returns:String

the localized string or the source string if no localized version is available.

getSourceStringback to summary
public String getSourceString()

Implements org.apache.commons.math3.exception.util.Localizable.getSourceString.

Doc from org.apache.commons.math3.exception.util.Localizable.getSourceString.

Gets the source (non-localized) string.

Returns:String

the source string.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override