com.tngtech.jgiven.format
Class BooleanFormatter

java.lang.Object
  extended by com.tngtech.jgiven.format.BooleanFormatter
All Implemented Interfaces:
ArgumentFormatter<java.lang.Boolean>
Direct Known Subclasses:
NotFormatter

public class BooleanFormatter
extends java.lang.Object
implements ArgumentFormatter<java.lang.Boolean>

General formatter to format boolean values.


Constructor Summary
BooleanFormatter()
           
 
Method Summary
 java.lang.String format(java.lang.Boolean b, java.lang.String... args)
          Format a single argument by taking optional formatter arguments into account.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanFormatter

public BooleanFormatter()
Method Detail

format

public java.lang.String format(java.lang.Boolean b,
                               java.lang.String... args)
Description copied from interface: ArgumentFormatter
Format a single argument by taking optional formatter arguments into account.

Specified by:
format in interface ArgumentFormatter<java.lang.Boolean>
Parameters:
b - the object to format
args - optional arguments for the formatter to control the formatting.
Returns:
a formatted string