public class PropertySplitter extends Object
| 构造器和说明 |
|---|
PropertySplitter() |
| 限定符和类型 | 方法和说明 |
|---|---|
static PropertySplitter |
getInstance() |
Collection<Collection<String>> |
groupedList(String property)
Example: one.example.property = VALUE1.1,VALUE1.2|VALUE2.1,VALUE2.2
|
Collection<String> |
list(String property)
Example: one.example.property = VALUE1,VALUE2,VALUE3,VALUE4
|
Map<String,Collection<String>> |
mapOfKeyList(String defaultKey,
String property)
Example: property=KEY1:VALUE1.1,VALUE1.2|KEY2:VALUE2.1,VALUE2.2, defaultKey=ignored Example:
property = KEY1:VALUE1.1,VALUE1.2, defaultKey=KEY2 Example: property = VALUE1.1,VALUE1.2,
defaultKey=KEY2
|
public static PropertySplitter getInstance()
public Map<String,Collection<String>> mapOfKeyList(String defaultKey, String property)
defaultKey - defaultKeyproperty - propertypublic Collection<String> list(String property)
property - propertypublic Collection<Collection<String>> groupedList(String property)
property - propertyCopyright © 2023 The Ant Financial. All rights reserved.