JDK8 Map新函数merge()的学习理解
自己用JDK8也有蛮久了。里面加了些什么东西我都没好好去了解,今天学了点皮毛。记录一下:
Map里的新函数,源码如下:
/**
* If the specified key is not already associated with a value or is
* associated with null, associates it with the given non-null value.
* Otherwise, replaces the associated value with t
原创
2020-11-06 14:53:01 ·
362 阅读 ·
0 评论