Newer
Older
Algolike / src / main / java / resources / LoseB.java
Shinji on 9 Aug 2022 409 bytes コードの整形
package resources;

import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class LoseB {
    private boolean value;

    public void updateHandsB(List<Map.Entry<Integer, Boolean>> handsB) {
        value = (handsB.stream().filter(item -> item.getValue() == false).collect(Collectors.toList()).size() == 0);
    }

    public boolean getValue() {
        return value;
    }
}