@Immutable @MustImplementEqualsAndHashcode public class ConstantHasText extends AbstractHasText
IHasText interface
that always returns a constant string. Use this only for texts that never
need to be translated!| Constructor and Description |
|---|
ConstantHasText(String sFixedText) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
protected String |
internalGetText(Locale aContentLocale)
Main text resolving.
|
String |
toString() |
getText, internalGetLocaleToUseWithFallbackclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsHasDisplayText, getComparatorCollating@Nullable protected String internalGetText(@Nonnull Locale aContentLocale)
AbstractHasTextinternalGetText in class AbstractHasTextaContentLocale - Locale to use. This is the locale resolved internally. Never
null.null if no such text present in the passed localeCopyright © 2014–2022 Philip Helger. All rights reserved.