mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 10:45:23 +08:00
in progress
This commit is contained in:
37
MyBean.java
Normal file
37
MyBean.java
Normal file
@@ -0,0 +1,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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user