com.tngtech.jgiven.format
Interface ArgumentFormatter<T>

Type Parameters:
T - the type of the object to format
All Known Implementing Classes:
BooleanFormatter, DefaultFormatter, NotFormatter, PrintfFormatter

public interface ArgumentFormatter<T>

Interface for defining customer argument formatters.


Method Summary
 String format(T argumentToFormat, String... formatterArguments)
          Format a single argument by taking optional formatter arguments into account.
 

Method Detail

format

String format(T argumentToFormat,
              String... formatterArguments)
Format a single argument by taking optional formatter arguments into account.

Parameters:
argumentToFormat - the object to format
formatterArguments - optional arguments for the formatter to control the formatting.
Returns:
a formatted string


Copyright © 2014 TNG Technology Consulting. All rights reserved.