public final class Formatter extends Object
Formatter.arrayFormat("Hi {}.", "there")
will return the string "Hi there.".(String, int, int)| Modifier and Type | Method and Description |
|---|---|
static String |
arrayFormat(String messagePattern,
Object[] argArray)
Use slf4j MessageFormatter but make some changes to return only String
|
public static String arrayFormat(String messagePattern, Object[] argArray)
messagePattern - The message pattern which will be parsed and formattedargArray - The argument to be substituted in place of the formatting anchorCopyright © 2018. All rights reserved.