Implementing classes have to accept a String and returned a formatted version of it.
Example:
"John von Neumann" => "von Neumann, John"
| Modifier and Type | Method and Description |
|---|---|
| public String |
| format | back to summary |
|---|---|
| public String format(String fieldText) Failure Mode: Formatters should be robust in the sense that they always return some relevant string. If the formatter can detect an invalid input it should return the original string otherwise it may simply return a wrong output. | |