Package aQute.lib.formatter
Class Formatters
- java.lang.Object
-
- aQute.lib.formatter.Formatters
-
public class Formatters extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Formatters()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
format(java.lang.String format, java.lang.String... args)
Format a string using string, numeric, and date conversions while the input is stringsstatic java.lang.String
format(java.lang.String format, java.util.function.Function<java.lang.String,java.lang.Boolean> isTruthy, int offset, java.lang.String... args)
Format a string where the arguments are all strings.
-
-
-
Method Detail
-
format
public static java.lang.String format(java.lang.String format, java.util.function.Function<java.lang.String,java.lang.Boolean> isTruthy, int offset, java.lang.String... args)
Format a string where the arguments are all strings. The string is formatted with the ROOT Locale.- Parameters:
format
- the format stringisTruthy
- a function to turn a string into a booleanoffset
- the offset in the arguments array to start atargs
- the arguments- Returns:
- a formatted string
-
format
public static java.lang.String format(java.lang.String format, java.lang.String... args)
Format a string using string, numeric, and date conversions while the input is strings- Parameters:
format
- the format stringargs
- the arguments- Returns:
- a formatted string
-
-