Package com.helger.commons.text
Class ConstantHasText
java.lang.Object
com.helger.commons.text.AbstractHasText
com.helger.commons.text.ConstantHasText
- All Implemented Interfaces:
IHasText
An implementation of the
IHasText 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
-
Constructor Details
-
ConstantHasText
-
-
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
-