REM:
1. 不全缺少的类方法注释文档
This commit is contained in:
HuangXin 2020-07-07 20:28:06 +08:00
parent 21e0d2f626
commit d888e61d8e
2 changed files with 18 additions and 2 deletions

View File

@ -22,6 +22,12 @@ public class DeviceRouter {
return devType + "_" + ipAddr;
}
/**
* Device router factory dispose entry manager.
*
* @param device the device
* @return the dispose entry manager
*/
public static DisposeEntryManager deviceRouterFactory(DisposeDevice device) {
String mapKey = getMapKey(device.getType(), device.getIpAddr());
@ -56,11 +62,11 @@ public class DeviceRouter {
}
/**
* Device router factory dispose entry manager.
* Gets device router factory.
*
* @param devType the dev type
* @param ipAddr the ip addr
* @return the dispose entry manager
* @return the device router factory
*/
public static DisposeEntryManager getDeviceRouterFactory(int devType, String ipAddr) {

View File

@ -82,6 +82,16 @@ public class ProtocolRespDTO extends BaseProtocolDTO {
return result(err, getObjectJson(obj), ConstValue.Protocol.CRYPTO_NONE);
}
/**
* Result protocol resp dto.
*
* @param <T> the type parameter
* @param err the err
* @param obj the obj
* @param objType the obj type
* @return the protocol resp dto
* @throws JsonProcessingException the json processing exception
*/
public static <T> ProtocolRespDTO result(ErrorCode err, Object obj, Class<T> objType) throws JsonProcessingException {
return result(err, getObjectJson(obj, objType), ConstValue.Protocol.CRYPTO_NONE);
}