3 basic, cardinal, elementary, fundamental, key, primary, rudimentary. adv. 4 at the beginning, at the outset, before all else, beforehand, firstly, initially, in the first place, to begin with, to start with. n. 5 as in from the first beginning, commencement, inception, introduction, outset, start, starting point, word go (informal) first-class.
Next we define the enum, which we want to serialize and deserialize to JSON. And then we'll define the class, that uses the SampleEnum. The trick is to use a string as a private property and override its getter and setter, so that: 1  The getter returns the name of the enum value when serializing it.
Java Enum. Enum in java is a data type that contains fixed set of constants. It can be used for days of the week (SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY and SATURDAY) , directions (NORTH, SOUTH, EAST and WEST) etc.The java enum constants are static and final implicitly.It is available from JDK 1.5.ava Enum. Enum in java is a data type that contains fixed set of constants. It can be used for days of the week (SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY and SATURDAY) , directions (NORTH, SOUTH, EAST and WEST) etc.