Interface WebConsole.Formatter

  • Enclosing class:
    WebConsole

    public static interface WebConsole.Formatter
    This interface can be implemented by clients that want to customize the way parameters and objects are logged.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String parameterAsFloat​(java.lang.Object o)
      Function that is used to print an object as float using format specifiers.
      java.lang.String parameterAsInteger​(java.lang.Object o)
      Function that is used to print an object as integer using format specifiers.
      java.lang.String parameterAsString​(java.lang.Object o)
      Function that is used to print an object as string using format specifiers.
      java.lang.String printObject​(java.lang.Object o)
      Function that is used to print an object to the console.
    • Method Detail

      • printObject

        java.lang.String printObject​(java.lang.Object o)
        Function that is used to print an object to the console.
        Parameters:
        o - object to be printed
        Returns:
        a string representation of the passed object
      • parameterAsString

        java.lang.String parameterAsString​(java.lang.Object o)
        Function that is used to print an object as string using format specifiers.
        Parameters:
        o - object to be printed using string format specifiers
        Returns:
        a string representation of the passed object
      • parameterAsInteger

        java.lang.String parameterAsInteger​(java.lang.Object o)
        Function that is used to print an object as integer using format specifiers.
        Parameters:
        o - object to be printed using integer format specifiers
        Returns:
        a string representation of the passed object
      • parameterAsFloat

        java.lang.String parameterAsFloat​(java.lang.Object o)
        Function that is used to print an object as float using format specifiers.
        Parameters:
        o - object to be printed using float format specifiers
        Returns:
        a string representation of the passed object