Interface IFormatter<T>

Type Parameters:
T - the resource to format

public interface IFormatter<T>
IFormatter
  • Method Summary

    Modifier and Type
    Method
    Description
    format(List<T> listResources)
    Format the list of resources
    format(T resource)
    Format the given resource
    formatError(String strCode, String strMessage)
    Format the error message
  • Method Details

    • formatError

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

      String format(T resource)
      Format the given resource
      Parameters:
      resource - the resource
      Returns:
      the formatted resource
    • format

      String format(List<T> listResources)
      Format the list of resources
      Parameters:
      listResources - the list of resources
      Returns:
      the formatted resources