@Immutable public class ConstantHasDisplayText extends Object implements IHasDisplayText
IHasDisplayText interface that always
returns a constant string. Use this only for texts that never need to be
translated!| Constructor and Description |
|---|
ConstantHasDisplayText(String sFixedText) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDisplayText(Locale aContentLocale) |
int |
hashCode() |
String |
toString() |
@Nullable public String getDisplayText(@Nonnull Locale aContentLocale)
getDisplayText in interface IHasDisplayTextaContentLocale - The locale to be used for resolving. May not be null.null if the text could not be resolved in the passed
locale.Copyright © 2014–2015 Philip Helger. All rights reserved.