Package com.tngtech.jgiven.format
Class BooleanFormatter
- java.lang.Object
-
- 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
Constructors Constructor Description BooleanFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(java.lang.Boolean b, java.lang.String... args)
Format a single argument by taking optional formatter arguments into account.
-
-
-
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 interfaceArgumentFormatter<java.lang.Boolean>
- Parameters:
b
- the object to formatargs
- optional arguments for the formatter to control the formatting.- Returns:
- a formatted string
-
-