public class PipeFilterUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private static String |
FILTER_PARAM_FLAG |
private static String |
MULTI_PIPE_FLAG |
private static String |
PARAM_FLAG |
private static String |
PIPELINE_FLAG |
private static String |
SUB_VAR_PREFIX |
private static String |
SUB_VAR_SUFFIX |
private static String |
VAR_FLAG |
| 构造器和说明 |
|---|
PipeFilterUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String[] |
getPipeFilter(String pipeline) |
static String[] |
getPipeFilter(String pipeline,
int limit) |
static String[] |
getPipeFilterParams(String pipeFilter) |
static String[] |
getPipelines(String pipelines) |
static Object |
getValueOfMap(Map dataMap,
String key)
从map中获取值
|
static String |
getVariableName(String variable)
获取变量字符串的管道前面的变量
|
static boolean |
isEmpty(Collection<?> collection)
Return
true if the supplied Collection is null or empty. |
static boolean |
isEmpty(Map<?,?> map)
Return
true if the supplied Map is null or empty. |
static boolean |
isPipeline(String variable)
是否是管道,是管道返回true,反之返回false
|
static String[] |
split(String source,
String regex) |
static String |
trim(String source) |
public static boolean isEmpty(Collection<?> collection)
true if the supplied Collection is null or empty.
Otherwise, return false.collection - the Collection to checkpublic static boolean isEmpty(Map<?,?> map)
true if the supplied Map is null or empty.
Otherwise, return false.map - the Map to checkpublic static boolean isPipeline(String variable)
variable - 表达式public static String getVariableName(String variable)
variable - 包含管道的变量字符串public static Object getValueOfMap(Map dataMap, String key)
dataMap - mapkey - 例如: demo.test.nameCopyright © 2023. All rights reserved.