Skip to content

Instantly share code, notes, and snippets.

@k33g
Created February 24, 2011 09:35
Show Gist options
  • Save k33g/841971 to your computer and use it in GitHub Desktop.
Save k33g/841971 to your computer and use it in GitHub Desktop.
Class Project
public class Project {
public String id;
public String name;
public String test;
public Integer amount;
public static Project getInstance(Object o) throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException, InstantiationException{
return (Project) ObjectStructure.getStructure(o,new Project());
}
@Override
public String toString() {
return "Project{" + "id=" + id + "name=" + name + "test=" + test + "amount=" + amount + '}';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment