This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird, File's fields length

 
Didier Varon
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was going to implement the fields length as final variables of the data class, but since we have enum types I thought it would be better to use it, but going over the header description I found that the field's length is defined there, and now I would like to define those values dynamically when the file is loaded the first time, but I also would like to encapsulate those values on an enum type, but I do not know how to call the enum constructor using a variable reference (I think is not possible). In summary my question is should I create a class to handle those variables and set their values dynamically or create an enum type inside the data class?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11833
181
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Didier,
should I create a class to handle those variables and set their values dynamically or create an enum type inside the data class?
I would create a class to handle those variables and set their values dynamically.

Regards, Andrew
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic