public class NotFormatter extends BooleanFormatter
false to the word "not" and true to the empty word "".
true: "" false: "not"
then().the_coffee_should_$_be_served( coffeeServed )
then the coffee should not be served
then the coffee should be served
| Constructor and Description |
|---|
NotFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.lang.Boolean b,
java.lang.String... args)
Format a single argument by taking optional formatter arguments into account.
|
public java.lang.String format(java.lang.Boolean b,
java.lang.String... args)
ArgumentFormatterformat in interface ArgumentFormatter<java.lang.Boolean>format in class BooleanFormatterb - the object to formatargs - optional arguments for the formatter to control the formatting.