Class ToStringHelper

    • Constructor Summary

      Constructors 
      Constructor Description
      ToStringHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String render​(java.lang.Object o)
      Returns o.toString() unless it throws an exception (which causes it to be stored in unrenderableClasses) or already was present in unrenderableClasses.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • render

        public static java.lang.String render​(java.lang.Object o)
        Returns o.toString() unless it throws an exception (which causes it to be stored in unrenderableClasses) or already was present in unrenderableClasses. If so, the same string is returned as would have been returned by Object.toString(). Arrays get special treatment as they don't have usable toString methods.
        Parameters:
        o - incoming object to render.
        Returns: