mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-12-16 16:11:10 +08:00
Moves src folder to simplify build.gradle configuration. If JSON-Java source is merged, it's src fold would now be src/main/java/org.json/ instead of src/main/org.json as well.
This commit is contained in:
23
src/test/java/org/json/junit/MyEnumField.java
Normal file
23
src/test/java/org/json/junit/MyEnumField.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package org.json.junit;
|
||||
|
||||
/**
|
||||
* An enum that contains getters and some internal fields
|
||||
*/
|
||||
public enum MyEnumField {
|
||||
VAL1(1, "val 1"),
|
||||
VAL2(2, "val 2"),
|
||||
VAL3(3, "val 3");
|
||||
|
||||
private String value;
|
||||
private Integer intVal;
|
||||
private MyEnumField(Integer intVal, String value) {
|
||||
this.value = value;
|
||||
this.intVal = intVal;
|
||||
}
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public Integer getIntVal() {
|
||||
return intVal;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user