Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can't see this method in javadoc because it's added by the compiler.</p> <p>Documented in three places : </p> <ul> <li><a href="http://docs.oracle.com/javase/tutorial/java/javaOO/enum.html" rel="noreferrer">Enum Types</a>, <a href="http://docs.oracle.com/javase/tutorial/" rel="noreferrer">The Java Tutorials</a></li> </ul> <blockquote> <p>The compiler automatically adds some special methods when it creates an enum. For example, they have a static values method that returns an array containing all of the values of the enum in the order they are declared. This method is commonly used in combination with the for-each construct to iterate over the values of an enum type.</p> </blockquote> <ul> <li><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#valueOf(java.lang.Class,%20java.lang.String)" rel="noreferrer"><code>Enum.valueOf</code></a> class<br />(The special implicit <code>values</code> method is mentioned in description of <code>valueOf</code> method)</li> </ul> <blockquote> <p>All the constants of an enum type can be obtained by calling the implicit public static T[] values() method of that type.</p> </blockquote> <ul> <li><a href="http://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#jls-8.9" rel="noreferrer">Enum Types, Section 8.9</a>, <a href="http://docs.oracle.com/javase/specs/jls/se8/html/index.html" rel="noreferrer">Java Language Specification</a></li> </ul> <p>The <code>values</code> function simply list all values of the enumeration.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload