有趣的是,我用Lambda表达式替换了方法引用,并且它起作用了。
ImmutableTable.copyOf(itemList.parallelStream() .map(item -> ProcessorInstanceProvider.get() .buildImmutableTable(item)) .collect(() -> HashbasedTable.create(), (a, b) -> a.putAll(b), (a, b) -> a.putAll(b)) );

有趣的是,我用Lambda表达式替换了方法引用,并且它起作用了。
ImmutableTable.copyOf(itemList.parallelStream() .map(item -> ProcessorInstanceProvider.get() .buildImmutableTable(item)) .collect(() -> HashbasedTable.create(), (a, b) -> a.putAll(b), (a, b) -> a.putAll(b)) );