Skip to content

Instantly share code, notes, and snippets.

@ajduke

ajduke/ModelObject2.java

Last active Dec 20, 2015
Embed
What would you like to do?
package in.ajduke.ap012;
/**
* An model for demo of gson conversion
*
* @author ajduke
*/
public class ModelObject {
String name;
transient 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