fixed
This commit is contained in:
parent
26df644e0d
commit
a99c9cefd2
@ -24,18 +24,18 @@ class Lab5 {
|
||||
}
|
||||
};
|
||||
|
||||
Immutator<Actually<Map<String, Map<String, String>>>, Map<String, Map<String, Map<String, String>>>> getStudent = new Immutator<>() {
|
||||
Immutator<Actually<Map<String, Map<String, String>>>, Map<String, Map<String, Map<String, String>>>> getModule = new Immutator<>() {
|
||||
|
||||
@Override
|
||||
public Actually<Map<String, Map<String, String>>> invoke(Map<String, Map<String, Map<String, String>>> param) {
|
||||
return Actually.ok(param.get(student));
|
||||
return Actually.ok(param.get(module));
|
||||
}
|
||||
};
|
||||
Immutator<Actually<Map<String, String>>, Map<String, Map<String, String>>> getModule = new Immutator<>() {
|
||||
Immutator<Actually<Map<String, String>>, Map<String, Map<String, String>>> getStudent = new Immutator<>() {
|
||||
|
||||
@Override
|
||||
public Actually<Map<String, String>> invoke(Map<String, Map<String, String>> param) {
|
||||
return Actually.ok(param.get(module));
|
||||
return Actually.ok(param.get(student));
|
||||
}
|
||||
};
|
||||
|
||||
@ -48,35 +48,38 @@ class Lab5 {
|
||||
|
||||
};
|
||||
|
||||
return cDb.init().next(getStudent).next(getModule).next(getAssessment).except(cNoEntry);
|
||||
return cDb.init().next(getModule).next(getStudent).next(getAssessment).except(cNoEntry);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
// Create a scanner to read from standard input.
|
||||
Scanner sc = new Scanner(System.in);
|
||||
|
||||
// Read a single integer from the test file
|
||||
// and then run the appropriate test case
|
||||
switch (sc.nextInt()) {
|
||||
case 1:
|
||||
test1();
|
||||
break;
|
||||
case 2:
|
||||
test2();
|
||||
break;
|
||||
case 3:
|
||||
test3();
|
||||
break;
|
||||
case 4:
|
||||
test4();
|
||||
break;
|
||||
case 5:
|
||||
test5();
|
||||
break;
|
||||
case 6:
|
||||
test6();
|
||||
break;
|
||||
}
|
||||
test6();
|
||||
/*
|
||||
* Scanner sc = new Scanner(System.in);
|
||||
*
|
||||
* // Read a single integer from the test file
|
||||
* // and then run the appropriate test case
|
||||
* switch (sc.nextInt()) {
|
||||
* case 1:
|
||||
* test1();
|
||||
* break;
|
||||
* case 2:
|
||||
* test2();
|
||||
* break;
|
||||
* case 3:
|
||||
* test3();
|
||||
* break;
|
||||
* case 4:
|
||||
* test4();
|
||||
* break;
|
||||
* case 5:
|
||||
* test5();
|
||||
* break;
|
||||
* case 6:
|
||||
* test6();
|
||||
* break;
|
||||
* }
|
||||
*/
|
||||
}
|
||||
|
||||
public static void test1() {
|
||||
|
Loading…
Reference in New Issue
Block a user