Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2016 06:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hongthaiphi/da74a34fc48ec867e4462d158fa35ee4 to your computer and use it in GitHub Desktop.
* User object contains user ID as an integer, and 5 fields of generic object
* In this example, 5 fields of generic objects are associate with some primitive types
static class User {
// userID is a number
private Integer userID;
// generic type of float number
private Float field1;
// generic type of integer number
private Short field2;
// generic type of boolean number
private Boolean field3;
// generic type of byte number
private Byte field4;
// generic type of long number
private Long field5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment