Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
5
Newest
 Supporter
Impact
~326 people reached

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
Jun
17
awarded  Supporter
Jun
7
awarded  Teacher
Jun
6
awarded  Student
Jun
6
comment Organizing classes with many properties that need to be iterated through
Unfortunately, no. Since a lot of my values are of different types (I have ints, a couple Dates, etc.), this implementation won't quite work.
Jun
5
comment Organizing classes with many properties that need to be iterated through
I'm not entirely sure that I like the idea of adding another library just for this one functionality. I think I might go with @Job's comment on the question, and just refactor it so that I don't need the class at all. Or, I guess I'll just iterate.
Jun
5
comment Organizing classes with many properties that need to be iterated through
Hmm, perhaps I see your point here. Basically, what I was doing before was collecting data from the internet, that was "shaped" a certain way. At this point I would put it into the database, but usually through an intermediary object, such as a class. I was then using that class to essentially pass data back and forth between activities. Are you suggesting, however, that I just "eliminate the middle man" and start solely using the database for data?
Jun
5
comment Organizing classes with many properties that need to be iterated through
That's similar to the current implementation that I had been trying to work on, but iterating through each one becomes a chore, since I would have to do some casting on it to get it back to its original structure, in the end. I still am somewhat unsure of how a "reflection based solution" would work in java, however.
Jun
5
comment Organizing classes with many properties that need to be iterated through
Can you give me an example of how you might do this? I've never actually had to seriously use reflection for anything in Java, because as it stands, what I know about reflection in other languages seems like it would be more complicated than just iterating through a list of properties.
Jun
5
awarded  Editor
Jun
5
revised Organizing classes with many properties that need to be iterated through
added 220 characters in body
Jun
5
asked Organizing classes with many properties that need to be iterated through
Jun
5
awarded  Autobiographer
Mar
24
answered How do you know you're writing good code?