Top Fields Constructors Methods
org.eclipse.jetty.util.component

public Class DumpableCollection

extends Object
implements Dumpable
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.util.component.Dumpable
Imports
java.io.IOException, java.util.Arrays, .Collection, .Collections

Field Summary

Modifier and TypeField and Description
private final Collection<?>
private final String

Constructor Summary

AccessConstructor and Description
public
DumpableCollection(String name, Collection<?> collection)

Method Summary

Modifier and TypeMethod and Description
public void
dump(Appendable
The appendable to dump to
out
,
String
The indent to apply after any new lines.
indent
)

Implements org.eclipse.jetty.util.component.Dumpable.dump.

Dump this object (and children) into an Appendable using the provided indent after any new lines.

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

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

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_collectionback to summary
private final Collection<?> _collection
_nameback to summary
private final String _name

Constructor Detail

DumpableCollectionback to summary
public DumpableCollection(String name, Collection<?> collection)

Method Detail

dumpback to summary
public void dump(Appendable out, String indent) throws IOException

Implements org.eclipse.jetty.util.component.Dumpable.dump.

Doc from org.eclipse.jetty.util.component.Dumpable.dump.

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.

Parameters
out:Appendable

The appendable to dump to

indent:String

The indent to apply after any new lines.

Annotations
@Override
Exceptions
IOException:
if unable to write to Appendable
fromback to summary
public static DumpableCollection from(String name, Object... items)
fromback to summary
public static DumpableCollection from(String name, Collection<?> collection)
fromArrayback to summary
public static DumpableCollection fromArray(String name, Object[] array)