forked from stleary/JSON-Java-unit-test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyBean.java
More file actions
37 lines (35 loc) · 843 Bytes
/
Copy pathMyBean.java
File metadata and controls
37 lines (35 loc) · 843 Bytes
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
package org.json.junit;
public class MyBean {
public int intKey;
public double doubleKey;
public String stringKey;
public String complexStringKey;
public boolean trueKey;
public boolean falseKey;
public MyBean() {
intKey = 42;
doubleKey = -23.45e7;
stringKey = "hello world!";
complexStringKey = "h\be\tllo w\u1234orld!";
trueKey = true;
falseKey = false;
}
public int getIntKey() {
return intKey;
}
public double getDoubleKey() {
return doubleKey;
}
public String getStringKey() {
return stringKey;
}
public String getComplexStringKey() {
return complexStringKey;
}
public boolean isTrueKey() {
return trueKey;
}
public boolean isFalseKey() {
return falseKey;
}
}