Given the nested HashMap HashMap<Integer,HashMap<Integer,BigDecimal>>
is it possible to set to zero inner HashMap values with parallel streams with
acceptable side-effects and respecting non-interference rules?
For example,given HashMap:
HashMap<Integer,HashMap<Integer,BigDecimal>> myMap = null;
is the final forEach in:
myMap.entrySet().parallelStream().forEach(e -> {
e.getValue().entrySet().parallelStream().forEach(e1 -> {
e1.setValue(new BigDecimal(0));
});
});
acceptable side-effects and respecting non-interference rules?