例如,如果我有一个Stream.of(new SimpleEntry<>(1, "a"), new SimpleEntry<>(2, "b"))
.collect(
Collectors.toMap(
Entry::getKey, Entry::getValue,
(a, b) -> { throw new IllegalStateException(); },
TreeMap::new);
的{{1}}警报...,我很希望alert_text包含实际记录的基数。这可能吗?
docs没有显示执行此操作的方法。