Package com.helger.commons.error.text
Class DynamicHasErrorText
- java.lang.Object
-
- com.helger.commons.error.text.DynamicHasErrorText
-
- All Implemented Interfaces:
IHasErrorText,IHasDisplayText
@Immutable @MustImplementEqualsAndHashcode public class DynamicHasErrorText extends Object implements IHasErrorText
A implementation ofIHasErrorTextbased onIHasText. Cannot be a lambda expression because equals/hashCode is required!- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description DynamicHasErrorText(IHasDisplayText aText)DynamicHasErrorText(IHasText aText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDisplayText(Locale aContentLocale)inthashCode()booleanisMultiLingual()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.text.display.IHasDisplayText
getAsHasText
-
-
-
-
Constructor Detail
-
DynamicHasErrorText
public DynamicHasErrorText(@Nonnull IHasDisplayText aText)
-
-
Method Detail
-
getDisplayText
@Nullable public String getDisplayText(@Nonnull Locale aContentLocale)
- 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.
-
isMultiLingual
public boolean isMultiLingual()
- Specified by:
isMultiLingualin interfaceIHasErrorText- Returns:
trueif the error text is multilingual,falseotherwise.
-
-