public class DollarBraceDecoder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PATTERN
Match against "${}", where there's at least one of any character
except '}' in between the braces ("{}").
|
Constructor and Description |
---|
DollarBraceDecoder() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
getTokens(String string)
Get the ${} tokens from the supplied string.
|
static String |
replaceTokens(String string,
String replacement)
Replace all the ${} tokens with the specified String.
|
public static final String PATTERN
public static List<String> getTokens(String string)
string
- The String from which to extract the ${} tokens.public static String replaceTokens(String string, String replacement)
string
- The String on which to perform the replacement.replacement
- The replacement string.Copyright © 2020. All rights reserved.