Class Text

java.lang.Object
net.objecthunter.exp4j.utils.Text

public final class Text extends Object
Small wrapper for ResourceBundle
Author:
Federico Vera <[email protected]>
  • Method Details

    • l10n

      public static String l10n(String key)
      Retrieves the localized version of the string.
      Parameters:
      key - key to search
      Returns:
      if the key is found it retrieves the value, in case of error it returns the key itself
    • l10n

      public static String l10n(String key, Object... args)
      Retrieves the localized and formatted version of the string.
      Parameters:
      key - key to search
      args - arguments used for formatting
      Returns:
      if the key is found it retrieves the value, in case of error it returns the key itself
      See Also: