private Map<Short, Pair<DataType, String>> mapStringPropertiesToShortAndDataType(
Map<String, Pair<String, String>> stringProperties, boolean insertIfKeyDoesntExist,
boolean assertAllKeysExist) {
if (null == stringProperties) {
return null;
}
Pair<Short, DataType> keyDataTypePair;
Pair<String, String> stringDataTypeValuePair;
Map<Short, Pair<DataType, String>> resultProperties = new HashMap<>();
for (String stringKey : stringProperties.keySet()) {
stringDataTypeValuePair = stringProperties.get(stringKey);
keyDataTypePair = mapStringPropertyKeyValueToShortAndDataType(stringKey,
stringDataTypeValuePair.a/* DataType as String */, insertIfKeyDoesntExist,
assertAllKeysExist);
resultProperties.put(keyDataTypePair.a /* key as short */, new Pair<>(
keyDataTypePair.b/* DataType */, stringDataTypeValuePair.b/* value as String */));
}
return resultProperties;
}
TypeAndPropertyKeyStore.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:graphflow
作者:
评论列表
文章目录