Class MethodLogger.DefaultArgumentToString

java.lang.Object
is.codion.common.logging.MethodLogger.DefaultArgumentToString
All Implemented Interfaces:
MethodLogger.ArgumentToString
Enclosing interface:
MethodLogger

public static class MethodLogger.DefaultArgumentToString extends Object implements MethodLogger.ArgumentToString
Provides String representations of method arguments.
  • Constructor Details

    • DefaultArgumentToString

      public DefaultArgumentToString()
  • Method Details

    • argumentToString

      public final String argumentToString(String methodName, Object object)
      Specified by:
      argumentToString in interface MethodLogger.ArgumentToString
      Parameters:
      methodName - the method name
      object - the argument
      Returns:
      a String representation of the argument
    • toString

      protected String toString(String methodName, Object object)
      Returns a String representation of the given object.
      Parameters:
      methodName - the method name
      object - the object
      Returns:
      a String representation of the given object
    • toString

      protected String toString(Object object)
      Returns a String representation of the given object.
      Parameters:
      object - the object
      Returns:
      a String representation of the given object