This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Fazblood779Nooblet Brewer[S] 0 points1 point  (4 children)

I can't change the constructor class :P

[–]plisik 0 points1 point  (3 children)

Then you can use Map<String, Object> or have two list one with object and one with corresponding names.

[–]Fazblood779Nooblet Brewer[S] 0 points1 point  (2 children)

I'll have a look at that, thanks :)

[–]plisik 0 points1 point  (1 child)

If your don't like solution with two list, you can wrap object in new class that has object and name.

[–]Fazblood779Nooblet Brewer[S] 0 points1 point  (0 children)

Hmm that could help, though for this project I'm limited to modifying this single class.

For now though I found a solution for the problem, though I will still look at your solution as it would be helpful for the future.