Class ResourceBundleTextProvider
java.lang.Object
com.helger.commons.text.AbstractHasText
com.helger.commons.text.resourcebundle.ResourceBundleTextProvider
- All Implemented Interfaces:
IHasText,IHasTextWithArgs
@Immutable
@MustImplementEqualsAndHashcode
public class ResourceBundleTextProvider
extends AbstractHasText
implements IHasTextWithArgs
This class encapsulates the resource bundle handling.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionResourceBundleTextProvider(ResourceBundleKey aResBundleKey) ResourceBundleTextProvider(String sBundleName, String sKey) -
Method Summary
Methods inherited from class com.helger.commons.text.AbstractHasText
getText, internalGetLocaleToUseWithFallbackMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.text.IHasText
getAsHasDisplayText, getTextMethods inherited from interface com.helger.commons.text.IHasTextWithArgs
getAsHasDisplayTextWithArgs, getTextWithArgs, getTextWithArgs
-
Constructor Details
-
ResourceBundleTextProvider
-
ResourceBundleTextProvider
-
-
Method Details
-
internalGetText
Description copied from class:AbstractHasTextMain text resolving. Get the text in the passed locale.- Specified by:
internalGetTextin classAbstractHasText- Parameters:
aContentLocale- Locale to use. This is the locale resolved internally. Nevernull.- Returns:
nullif no such text present in the passed locale
-
equals
-
hashCode
public int hashCode() -
toString
-