Interface IFormatter<T>

  • Type Parameters:
    T - the resource to format

    public interface IFormatter<T>
    IFormatter
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.util.List<T> listResources)
      Format the list of resources
      java.lang.String format​(T resource)
      Format the given resource
      java.lang.String formatError​(java.lang.String strCode, java.lang.String strMessage)
      Format the error message
    • Method Detail

      • formatError

        java.lang.String formatError​(java.lang.String strCode,
                                     java.lang.String strMessage)
        Format the error message
        Parameters:
        strCode - the error code
        strMessage - the error message
        Returns:
        the formatted error message
      • format

        java.lang.String format​(T resource)
        Format the given resource
        Parameters:
        resource - the resource
        Returns:
        the formatted resource
      • format

        java.lang.String format​(java.util.List<T> listResources)
        Format the list of resources
        Parameters:
        listResources - the list of resources
        Returns:
        the formatted resources