-
Notifications
You must be signed in to change notification settings - Fork 0
/
Value.java
53 lines (40 loc) · 977 Bytes
/
Value.java
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
42
43
44
45
46
47
48
49
50
51
52
53
package json_parser;
import java.util.List;
import java.util.LinkedHashMap;
public class Value {
private ParserType type;
private double num;
private String str;
private List<Value> array;
private LinkedHashMap<String, Value> object;
public ParserType getType() {
return type;
}
public void setType(ParserType type) {
this.type = type;
}
public double getNum() {
return num;
}
public void setNum(double num) {
this.num = num;
}
public String getStr() {
return str;
}
public void setStr(String str) {
this.str = str;
}
public List<Value> getArray() {
return array;
}
public void setArray(List<Value> array) {
this.array = array;
}
public LinkedHashMap<String, Value> getObject() {
return object;
}
public void setObject(LinkedHashMap<String, Value> object) {
this.object = object;
}
}