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 of IHasErrorText based on IHasText. Cannot be a lambda expression because equals/hashCode is required!
Author:
Philip Helger
  • Constructor Details

  • Method Details

    • getDisplayText

      @Nullable public String getDisplayText(@Nonnull Locale aContentLocale)
      Specified by:
      getDisplayText in interface IHasDisplayText
      Parameters:
      aContentLocale - The locale to be used for resolving. May not be null.
      Returns:
      The display text of the object in the given locale. May be null if the text could not be resolved in the passed locale.
    • isMultiLingual

      public boolean isMultiLingual()
      Specified by:
      isMultiLingual in interface IHasErrorText
      Returns:
      true if the error text is multilingual, false otherwise.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object