logahawk.formatters
Class CollectionArgFormatter
java.lang.Object
logahawk.formatters.AbstractArgumentFormatter
logahawk.formatters.CollectionArgFormatter
- All Implemented Interfaces:
- ArgumentFormatter
- Direct Known Subclasses:
- AbstractCollectionArgFormatter, ArrayArgFormatter, ConcatCollectionArgFormatter, HierarchicalCollectionArgFormatter
@Immutable
public abstract class CollectionArgFormatter
- extends AbstractArgumentFormatter
Formats Collection
s of objects by deferring each instance in the collection to the provided formatters.
(Technically this will format anything that implements Iterable
.)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionArgFormatter
public CollectionArgFormatter()
canFormat
public boolean canFormat(Object obj)
- Formats anything that implements
Iterable
.