How to Javadoc a Class’s Individual Enums

You do it just like any other variable you would javadoc.


/**
 *  Colors that can be used
 */
public enum Color
{
    /**
     * Red color
     */
    red,

    /**
     * Blue color
     */
    blue

}

EDIT:

From PaĆ­lo Ebermann : The enum is a separate class. You can’t include its full documentation in the enclosing class (at least, without patching the standard doclet).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)