/** * Creates an instance of {@link ObjectGenerator} which generates a formatted string using the specified format * string and objects. Placeholder for value is defined as '{}', first placeholder uses first value, second, second * value, and so on. * * @param format Format string, * @param values List of values. * @return An instance of {@link ObjectGenerator} which generates formated strings. */ public static ObjectGenerator<String> string(String format, Object... values) { return string(format, Arrays.asList(values)); }
/** * Creates an instance of {@link ObjectGenerator} which generates a formatted string using the specified format * string and objects. Placeholder for value is defined as '{}', first placeholder uses first value, second, second * value, and so on. * * @param format Format string, * @param values List of values. * @return An instance of {@link ObjectGenerator} which generates formated strings. */ public static ObjectGenerator<String> string(String format, Object... values) { return string(format, Arrays.asList(values)); }