Class DumpableCollection

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

public class DumpableCollection extends Object implements Dumpable
  • Field Details

    • _name

      private final String _name
    • _collection

      private final Collection<?> _collection
  • 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)
    • dump

      public String dump()
      Specified by:
      dump in interface Dumpable
    • 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