@Immutable @MustImplementEqualsAndHashcode public class ConstantHasErrorText extends Object implements IHasErrorText
IHasErrorText. Cannot be a lambda
expression because equals/hashCode is required!| Constructor and Description |
|---|
ConstantHasErrorText(String sText) |
| Modifier and Type | Method and Description |
|---|---|
static ConstantHasErrorText |
createOnDemand(String sErrorText) |
boolean |
equals(Object o) |
String |
getDisplayText(Locale aContentLocale) |
int |
hashCode() |
boolean |
isMultiLingual() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsHasText, getComparatorCollating@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.public boolean isMultiLingual()
isMultiLingual in interface IHasErrorTexttrue if the error text is multilingual,
false otherwise.@Nullable public static ConstantHasErrorText createOnDemand(@Nullable String sErrorText)
Copyright © 2014–2017 Philip Helger. All rights reserved.