Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

where is method :)

 
Dan Polak
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe someone know where is definition of static method values() whitch is available for every enums instance ?

enum A {

}

A[] a = A.values();
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's in the language specification: JLS 8.9.
 
Franz Fountain
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also take a look at this article on the Sun website regarding Enums:

http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic