Add guide
Some checks failed
rock-paper-scissors/pipeline/head There was a failure building this commit
Some checks failed
rock-paper-scissors/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -5,13 +5,14 @@ import fr.iut_fbleau.info.but3.automation.rock_paper_scissors.stat.domain.StatBo
|
|||||||
import fr.iut_fbleau.info.but3.automation.rock_paper_scissors.stat.spi.StatRepository;
|
import fr.iut_fbleau.info.but3.automation.rock_paper_scissors.stat.spi.StatRepository;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@Stub
|
@Stub
|
||||||
public record InMemoryStatRepository(Map<String, Integer> stats) implements StatRepository {
|
public record InMemoryStatRepository(Map<String, Integer> stats) implements StatRepository {
|
||||||
|
|
||||||
|
|
||||||
private final static HashMap<String, Integer> DEFAULT_STATS = new HashMap<>(Map.of("joe", 1,"eoj", 3));
|
private final static HashMap<String, Integer> DEFAULT_STATS = new LinkedHashMap<>(Map.of("joe", 1,"eoj", 3));
|
||||||
|
|
||||||
public InMemoryStatRepository() {
|
public InMemoryStatRepository() {
|
||||||
this(DEFAULT_STATS);
|
this(DEFAULT_STATS);
|
||||||
|
|||||||
Reference in New Issue
Block a user