logahawk.formatters
Class NullSigFormatter

java.lang.Object
  extended by logahawk.formatters.NullSigFormatter
All Implemented Interfaces:
SignatureFormatter

@Immutable
public final class NullSigFormatter
extends Object
implements SignatureFormatter

This will remove any "null" arguments from the log message. Null arguments in and of themselves do not contain any useful information, so they can be safely removed. This implementation also acts as a useful example to what a SignatureFormatter can be used for.


Constructor Summary
NullSigFormatter()
           
 
Method Summary
 boolean canFormat(List<Object> arguments)
          This should return true only if this "Formatter" can provide a useful formatting for this signature.
 void format(List<Object> arguments)
          This will re-arrange and alter the signature provided into a new signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullSigFormatter

public NullSigFormatter()
Method Detail

canFormat

public boolean canFormat(List<Object> arguments)
Description copied from interface: SignatureFormatter
This should return true only if this "Formatter" can provide a useful formatting for this signature.

Specified by:
canFormat in interface SignatureFormatter

format

public void format(List<Object> arguments)
Description copied from interface: SignatureFormatter
This will re-arrange and alter the signature provided into a new signature. This will modify the provided list.

Specified by:
format in interface SignatureFormatter