mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-03 08:26:11 +00:00
em
This commit is contained in:
parent
e5c818cf7b
commit
26aae2b730
@ -126,7 +126,7 @@ public class EngineMobHandlerSVC extends IrisEngineService implements IrisMobDat
|
||||
.collect(Collectors.toMap(
|
||||
Map.Entry::getKey,
|
||||
Map.Entry::getValue,
|
||||
(e1, e2) -> e1, // Handle potential duplicates by keeping the first entry
|
||||
(e1, e2) -> e1,
|
||||
LinkedHashMap::new
|
||||
));
|
||||
}
|
||||
@ -135,7 +135,7 @@ public class EngineMobHandlerSVC extends IrisEngineService implements IrisMobDat
|
||||
};
|
||||
|
||||
Function<Integer,Integer> viewHistory = (history) -> map.values().stream()
|
||||
.mapToInt(list -> list.isEmpty() ? 0 : list.get(history)) // Extract the first element or use 0 if the list is empty
|
||||
.mapToInt(list -> list.isEmpty() ? 0 : list.get(history))
|
||||
.sum();
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user