43 lines
898 B
Java
43 lines
898 B
Java
|
import java.util.ArrayList;
|
||
|
import java.util.HashMap;
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
import java.util.stream.Collectors;
|
||
|
import static java.util.Map.entry;
|
||
|
|
||
|
public class Tamerelapute {
|
||
|
public static void main(String[] args) {
|
||
|
|
||
|
Condition test = new Condition(
|
||
|
List.of(
|
||
|
List.of(
|
||
|
new ConditionBoolean(false),
|
||
|
new ConditionBoolean(true)),
|
||
|
List.of(
|
||
|
new ConditionBoolean(true))));
|
||
|
|
||
|
System.out.println(test.evaluer());
|
||
|
|
||
|
Map<String, Objet> test2 = Map.ofEntries(
|
||
|
entry(
|
||
|
"warpToken",
|
||
|
new Objet(
|
||
|
"warpToken",
|
||
|
1,
|
||
|
test,
|
||
|
List.of(new Description("test", "prout", test)))),
|
||
|
entry(
|
||
|
"warpToken2",
|
||
|
new Objet(
|
||
|
"warpToken2",
|
||
|
2,
|
||
|
test,
|
||
|
List.of(new Description("prout", test)))));
|
||
|
|
||
|
System.out.println(test2);
|
||
|
|
||
|
System.out.println(test2.get("warpToken"));
|
||
|
|
||
|
}
|
||
|
}
|