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
|