Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes javadoc enum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "javadoc enum" Watch "javadoc enum" New topic
Author

javadoc enum

Olu Shiyan
Ranch Hand

Joined: Jun 10, 2010
Posts: 57

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


SCJP 6, OCMJD6
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5147
    
  12

I did it like this:


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Olu Shiyan
Ranch Hand

Joined: Jun 10, 2010
Posts: 57

Thanks
Allan Cheong
Ranch Hand

Joined: Nov 12, 2009
Posts: 71

I have javadoc for the enum class, constructor and toString method.


SCJP6, SCJD, OCJWCD5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javadoc enum
 
Similar Threads
Storing Enum Types
Question about constructing enums
Understanding Enum
enum: can anyone post the rules for enum declarations
Getting a enum based upon one of its fields