类 ConnLabelsUtils
java.lang.Object
com.alibaba.nacos.common.utils.ConnLabelsUtils
ConnLabelsUtils.
- 作者:
- rong
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明addPrefixForEachKey(Map<String, T> map, String prefix) add prefix for each key in map.static <T,R> Map<T, R> mergeMapByOrder(Map<T, R> preferredMap, Map<T, R> backwardMap) merge two map into one by using the former value when key is duplicated.parsePropertyValue2Map(Properties properties, String propertyName) parse property value to map.parseRawLabels(String rawLabels) parse raw json labels into a key-value map.
-
字段详细资料
-
构造器详细资料
-
ConnLabelsUtils
public ConnLabelsUtils()
-
-
方法详细资料
-
parsePropertyValue2Map
parse property value to map.- 参数:
properties- PropertiespropertyName- which key to get- 返回:
- (String)key-(String)value map
-
parseRawLabels
parse raw json labels into a key-value map.- 参数:
rawLabels- rawLabels to parse- 返回:
- map parsed from rawLabels
-
mergeMapByOrder
merge two map into one by using the former value when key is duplicated.- 参数:
preferredMap- preferredMapbackwardMap- backwardMap
-
addPrefixForEachKey
add prefix for each key in map.- 参数:
map- map to add prefixprefix- prefix
-