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 Stringformat(List<T> listResources)Format the list of resourcesStringformat(T resource)Format the given resourceStringformatError(String strCode, String strMessage)Format the error message
-
-
-
Method Detail
-
formatError
String formatError(String strCode, String strMessage)
Format the error message- Parameters:
strCode- the error codestrMessage- 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
-
-