Package org.jenkinsci.plugins.tokenmacro
Interface Util.PrintfSpec
-
- All Known Implementing Classes:
ChangesSinceLastBuildMacro.ChangesSincePrintfSpec
- Enclosing class:
- Util
public static interface Util.PrintfSpec
An interface for use with Util.printf to specialize behavior. Implementing printSpec allows % escape sequences to be handled in an individual way.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
printSpec(StringBuffer buf, char formatChar)
Specializes the behavior of printf for % escape characters.
-
-
-
Method Detail
-
printSpec
boolean printSpec(StringBuffer buf, char formatChar)
Specializes the behavior of printf for % escape characters. Given a character, appends the replacement of that escape character to the given buffer, if the escape character can be handled. Otherwise, does nothing.- Parameters:
buf
- the buffer to append the result toformatChar
- the escape character being replaced- Returns:
- true if the character was handled
-
-