• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javadoc enum

 
Olu Shiyan
Ranch Hand
Posts: 57
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

I want use an enum to store the database constants constants e.g number of bytes used to store the magic cookie etc. However, Im not sure about how to javakdoc and enum? Did anyone use enums recently? If so, please explained how you applied javadoc to the enum
i.e. did you specify each enum constant on a separate line and did you insert a javadoc comment for each enum constant?


Thanks
 
Roel De Nijs
Sheriff
Posts: 10457
137
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did it like this:
 
Olu Shiyan
Ranch Hand
Posts: 57
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
Allan Cheong
Ranch Hand
Posts: 71
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have javadoc for the enum class, constructor and toString method.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic