Class ObjectRenderer


  • public final class ObjectRenderer
    extends Object
    Responsible for creating a string representation of any arbitrary object.

    This class provides only one method, renderObject, which is capable of creating a string representation of an object. It renders maps, collections, arrays or any other object.

    The public static members of this class are thread-safe.

    • Method Detail

      • renderObject

        public static String renderObject​(Object o)
        Creates a string representation of an object. This method is capable of creating a string representation of an object. For most types this method simply calls the toString method of the supplied object. Some objects, like maps, collections or arrays, are handled special.
        Parameters:
        o - The object to render. Can be null
        Returns:
        A string representation of the supplied object