public class ParamsUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.util.function.Function<java.lang.String,java.lang.String> |
DEFAULT_PARAM_FORMATTER
默认的变量格式为
%(变量名) 。 |
构造器和说明 |
---|
ParamsUtils() |
限定符和类型 | 方法和说明 |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
buildParams(@Nullable java.lang.String[] params,
@Nullable java.lang.Object[] values) |
static java.lang.String[] |
formatParams(@NotNull java.util.function.Function<java.lang.String,java.lang.String> formatter,
@NotNull java.lang.String[] params) |
static java.lang.String |
setPlaceholders(@NotNull java.lang.String messages,
@NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders) |
public static java.util.function.Function<java.lang.String,java.lang.String> DEFAULT_PARAM_FORMATTER
%(变量名)
。public static java.lang.String[] formatParams(@NotNull @NotNull java.util.function.Function<java.lang.String,java.lang.String> formatter, @NotNull @NotNull java.lang.String[] params)
public static java.util.Map<java.lang.String,java.lang.Object> buildParams(@Nullable @Nullable java.lang.String[] params, @Nullable @Nullable java.lang.Object[] values)
public static java.lang.String setPlaceholders(@NotNull @NotNull java.lang.String messages, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.Object> placeholders)
Copyright © 2024. All rights reserved.