Newer
Older
Algolike / src / main / java / resources / LoseA.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 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;
    }
}