Class HasTextWithArgs

  • All Implemented Interfaces:
    IHasText

    @Immutable
    public class HasTextWithArgs
    extends Object
    implements IHasText
    A special implementation of IHasText that encapsulates arguments to be put into the message.
    Since:
    8.5.2
    Author:
    Philip Helger
    • Method Detail

      • getText

        @Nullable
        public String getText​(@Nonnull
                              Locale aContentLocale)
        Description copied from interface: IHasText
        Get the text specific for the passed locale. The implementation class MAY add locale-generalisation when resolving the text ("de_DE" => "de" => default).
        Specified by:
        getText in interface IHasText
        Parameters:
        aContentLocale - The locale to use. May not be null.
        Returns:
        null if no text for the given locale was found.