Posts by Mateus Gasparotto • 1 point
2 posts
-
0
votes3
answers95
viewsA: Pass Enum value per method parameter
galley! I just had to think for a while, I was thinking of an unnecessary solution. Define in the class itself the constants with their respective values in a public and static way. public static…
-
0
votes3
answers95
viewsQ: Pass Enum value per method parameter
I have a value that stores the status of an element. For example: 1 - sending 2 - Cancelled 3 - Error. The value that will be saved in the database is the numeric value. I have a method that sets…