cofahoher
注册时间: 18/05/2016 09:59:58
文章: 2
离线
|
private SyncViewToClients createAttachNotify(long sessionid, Map<Byte, Data> init) {
SyncViewToClients p = protocol(SyncViewToClients.DT_TEMPORARY_ATTACH);
init.entrySet().stream().flatMap(e -> vdc.binary(e).map(v -> new ViewMemberData(sessionid, v)))
.collect(() -> p.members, List::add, List::addAll); //这里的 List::add报错,见下
The type List does not define add(ArrayList<ViewMemberData>, Object) that is applicable here
|