Class ToStringUtil


  • public class ToStringUtil
    extends java.lang.Object
    Utility class used to help generate return values for calls to Object.toString().
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toString​(java.lang.Object obj, Container container)
      Generates a toString representation for an object with an associated container.
      static java.lang.String toString​(java.lang.Object obj, Manager manager)
      Generates a toString representation for an object with an associated manager.
      static java.lang.String toString​(Contained contained)
      Generates a toString representation for a Contained component.
      • Methods inherited from class java.lang.Object

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

      • toString

        public static java.lang.String toString​(Contained contained)
        Generates a toString representation for a Contained component.
        Parameters:
        contained - the component
        Returns:
        the string representation
      • toString

        public static java.lang.String toString​(java.lang.Object obj,
                                                Container container)
        Generates a toString representation for an object with an associated container.
        Parameters:
        obj - the object
        container - the associated container
        Returns:
        the string representation
      • toString

        public static java.lang.String toString​(java.lang.Object obj,
                                                Manager manager)
        Generates a toString representation for an object with an associated manager.
        Parameters:
        obj - the object
        manager - the associated manager
        Returns:
        the string representation