mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 16:00:51 -07:00
in progress
This commit is contained in:
parent
2219b5919b
commit
22d5fd3aed
4 changed files with 215 additions and 1 deletions
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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue