package resources; import java.util.List; import java.util.Map; import java.util.stream.Collectors; public class LoseA { private boolean value; public void updateHandsA(List<Map.Entry<Integer, Boolean>> handsA) { value = (handsA.stream().filter(item -> item.getValue() == false).collect(Collectors.toList()).size() == 0); } public boolean getValue() { return value; } }