Package com.helger.commons.text
Class ConstantHasTextWithArgs
java.lang.Object
com.helger.commons.text.AbstractHasText
com.helger.commons.text.ConstantHasTextWithArgs
- All Implemented Interfaces:
IHasText,IHasTextWithArgs
@Immutable
@MustImplementEqualsAndHashcode
public class ConstantHasTextWithArgs
extends AbstractHasText
implements IHasTextWithArgs
An implementation of the
IHasTextWithArgs interface that always
returns a constant string. Use this only for texts that never need to be
translated!- Author:
- Philip Helger
-
Constructor Summary
Constructors -
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
-
ConstantHasTextWithArgs
-
-
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
-