logahawk.formatters
Class CollectionArgFormatter

java.lang.Object
  extended by logahawk.formatters.AbstractArgumentFormatter
      extended by logahawk.formatters.CollectionArgFormatter
All Implemented Interfaces:
ArgumentFormatter
Direct Known Subclasses:
AbstractCollectionArgFormatter, ArrayArgFormatter, ConcatCollectionArgFormatter, HierarchicalCollectionArgFormatter

@Immutable
public abstract class CollectionArgFormatter
extends AbstractArgumentFormatter

Formats Collections of objects by deferring each instance in the collection to the provided formatters. (Technically this will format anything that implements Iterable.)


Field Summary
 
Fields inherited from class logahawk.formatters.AbstractArgumentFormatter
indentor
 
Constructor Summary
CollectionArgFormatter()
           
 
Method Summary
 boolean canFormat(Object obj)
          Formats anything that implements Iterable.
 
Methods inherited from class logahawk.formatters.AbstractArgumentFormatter
findFormatter, getChildObjectFormat, getIndentor, setIndentor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface logahawk.formatters.ArgumentFormatter
format
 

Constructor Detail

CollectionArgFormatter

public CollectionArgFormatter()
Method Detail

canFormat

public boolean canFormat(Object obj)
Formats anything that implements Iterable.