• Post Reply Bookmark Topic Watch Topic
  • New Topic

whats a good way to find size of an enumeration  RSS feed

 
Jason Crest
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have an enumeration and i need to find the size of it, is there any function that can do this?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Enumeration interface only defines two methods, neither of which would give you the size. Of course if you are getting your enumeration from a collection, all collections have a size method.
 
Darin Niard
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!