Class BooleanFormatter

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

public class BooleanFormatter extends Object implements ArgumentFormatter<Boolean>
General formatter to format boolean values.
  • Constructor Details

    • BooleanFormatter

      public BooleanFormatter()
  • Method Details

    • format

      public String format(Boolean b, String... args)
      Description copied from interface: ArgumentFormatter
      Format a single argument by taking optional formatter arguments into account.
      Specified by:
      format in interface ArgumentFormatter<Boolean>
      Parameters:
      b - the object to format
      args - optional arguments for the formatter to control the formatting.
      Returns:
      a formatted string