-
-
Save hongthaiphi/da74a34fc48ec867e4462d158fa35ee4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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