Last active
December 20, 2015 08:09
-
-
Save ajduke/6098705 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package in.ajduke.ap012; | |
/** | |
* An model for gson demo | |
* | |
* @author ajduke | |
*/ | |
public class ModelObject { | |
String name; | |
int val; | |
boolean status; | |
double f; | |
public ModelObject(String name, int val, | |
boolean status, double f) { | |
super(); | |
this.name = name; | |
this.val = val; | |
this.status = status; | |
this.f = f; | |
} | |
@Override | |
public String toString() { | |
return "ModelObject [name=" + name + ", | |
val=" + val + ", status=" | |
+ status + ", f=" + f + "]"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment