blob: e6c085b5d6a106c4a9f16e5d8357ce339e0884d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
package org.jetbrains.plugins.coursecreator.format;
import com.google.gson.annotations.Expose;
import org.jetbrains.annotations.NotNull;
import java.util.HashMap;
import java.util.Map;
public class Task {
@Expose public String name;
@Expose public Map<String, TaskFile> task_files = new HashMap<String, TaskFile>();
public int myIndex;
public Task() {}
public Task(@NotNull final String name) {
this.name = name;
}
public int getIndex() {
return myIndex;
}
public void addTaskFile(@NotNull final String name, int index) {
TaskFile taskFile = new TaskFile();
taskFile.setIndex(index);
task_files.put(name, taskFile);
}
public TaskFile getTaskFile(@NotNull final String name) {
return task_files.get(name);
}
public void setIndex(int index) {
myIndex = index;
}
public Map<String, TaskFile> getTaskFiles() {
return task_files;
}
}
|