Newer
Older
Algolike / src / main / java / models / LoseA.java
package models;

import java.util.*;
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;
	}
}