@Immutable @MustImplementEqualsAndHashcode public class DynamicHasErrorText extends Object implements IHasErrorText
IHasErrorText based on IHasText. Cannot
be a lambda expression because equals/hashCode is required!| Constructor and Description |
|---|
DynamicHasErrorText(IHasDisplayText aText) |
DynamicHasErrorText(IHasText aText) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDisplayText(Locale aContentLocale) |
int |
hashCode() |
boolean |
isMultiLingual() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsHasText, getComparatorCollatingpublic DynamicHasErrorText(@Nonnull IHasDisplayText aText)
@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.Copyright © 2014–2022 Philip Helger. All rights reserved.