1、
Integer.valueOf() 与 Integer.parseInt() 可以看下源码 如果不需要装箱 可以直接是用后者
A boxed primitive is created from a String, just to extract the unboxed primitive value. It is more efficient to just call the static parseXXX method.
2、
Map<Integer, Integer> allCount = new HashMap<>();
allCount.merge(tmsTime.getSupplier(), tmsTime.getCnt(), (a, b) -> a + b);