Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2016
What would you like to do?
* 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