Interface AdvancedMessageFormat.Function

Enclosing class:
AdvancedMessageFormat

public static interface AdvancedMessageFormat.Function
Implementations of this interface do some computation based on the message parameters given to it. Note: at the moment, this has to be done in a local-independent way since there is no locale information.
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object evaluate​(java.util.Map<java.lang.String,​java.lang.Object> params)
    Executes the function.
    java.lang.Object getName()
    Returns the name of the function.
  • Method Details

    • evaluate

      java.lang.Object evaluate​(java.util.Map<java.lang.String,​java.lang.Object> params)
      Executes the function.
      Parameters:
      params - the message parameters
      Returns:
      the function result
    • getName

      java.lang.Object getName()
      Returns the name of the function.
      Returns:
      the name of the function