1.低级写法:
if (null != redisCacheService.get(MediaConstants.GUANGDIANTONG_YOUMI + CommonConstants.PLUS
+ md5_idfa)) {
guandianTong =redisCacheService.get(MediaConstants.GUANGDIANTONG_YOUMI + CommonConstants.PLUS
+ md5_idfa);
redisCacheService.del(MediaConstants.GUANGDIANTONG_YOUMI + CommonConstants.PLUS + md5_idfa);
}
高级写法:
if (null != (guandianTong = redisCacheService.get(MediaConstants.GUANGDIANTONG_YOUMI + CommonConstants.PLUS
+ md5_idfa))) {
redisCacheService.del(MediaConstants.GUANGDIANTONG_YOUMI + CommonConstants.PLUS + md5_idfa);
}
以上就是java中高级写法的全部内容。