Package com.helger.commons.text.display
Class ConstantHasDisplayText
java.lang.Object
com.helger.commons.text.display.ConstantHasDisplayText
- All Implemented Interfaces:
IHasDisplayText
@Immutable
@MustImplementEqualsAndHashcode
public class ConstantHasDisplayText
extends Object
implements IHasDisplayText
An implementation of the
IHasDisplayText interface that always
returns a constant string. Use this only for texts that never need to be
translated! Use this class if equals/hashCode is relevant- Author:
- Philip Helger
-
Constructor Details
-
ConstantHasDisplayText
-
-
Method Details
-
getDisplayText
- Specified by:
getDisplayTextin interfaceIHasDisplayText- Parameters:
aContentLocale- The locale to be used for resolving. May not benull.- Returns:
- The display text of the object in the given locale. May be
nullif the text could not be resolved in the passed locale.
-
equals
-
hashCode
public int hashCode() -
toString
-