Class DumpableCollection

java.lang.Object
org.eclipse.jetty.util.component.DumpableCollection
All Implemented Interfaces:
Dumpable

public class DumpableCollection extends Object implements Dumpable
  • Constructor Details

    • DumpableCollection

      public DumpableCollection(String name, Collection<?> collection)
  • Method Details

    • fromArray

      public static DumpableCollection fromArray(String name, Object[] array)
    • from

      public static DumpableCollection from(String name, Object... items)
    • from

      public static DumpableCollection from(String name, Collection<?> collection)
    • dump

      public void dump(Appendable out, String indent) throws IOException
      Description copied from interface: Dumpable
      Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
      Specified by:
      dump in interface Dumpable
      Parameters:
      out - The appendable to dump to
      indent - The indent to apply after any new lines.
      Throws:
      IOException - if unable to write to Appendable
    • dumpSelf

      public String dumpSelf()
      Description copied from interface: Dumpable
      The description of this/self found in the dump. Allows for alternative representation of Object other then .toString() where the long form output of toString() is represented in a cleaner way within the dump infrastructure.
      Specified by:
      dumpSelf in interface Dumpable
      Returns:
      the representation of self
    • toString

      public String toString()
      Overrides:
      toString in class Object