Skip to content

Instantly share code, notes, and snippets.

@ajduke
Last active December 20, 2015 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajduke/6098705 to your computer and use it in GitHub Desktop.
Save ajduke/6098705 to your computer and use it in GitHub Desktop.
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