[ 
https://issues.apache.org/jira/browse/BEANUTILS-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13829944#comment-13829944
 ] 

vakhtang koroghlishvili edited comment on BEANUTILS-453 at 11/22/13 1:30 PM:
-----------------------------------------------------------------------------

Thank you for your answer. I accept you. You are right, when we iterate over 
all keys contained in the map is not very good(in spite of  this code only 
executes, when there is enum key in the map).

What do you think, what is the best solution, when we have map with enum key? 
(sometimes we can't change that structure - some framework and API  gives as 
that type of structure).  Should not we  implement that issue because map 
should use string key? 

May be I am not right, I don't know, but I think, In my opinion, bin utils 
should have the solution of that problem (may be that is not very fast, but 
anyway it solves the problem). Or we should find another faster solution.




was (Author: v.koroghlishvili):
Yes, you are right, when we iterate over all keys contained in the map is not 
very good(in spite of  this code only executes, when there is enum key in the 
map).

What do you think, what is the best solution, when we have map with enum key 
(sometimes we can't change that structure - API gives as that type of 
structure)?  should not We  implement that issue because map should use string 
key? 

I think , bin utils should have the solution of that problem (may be that is 
not very fast, but anyway it solves the problem).


> there was no why, to get value from the map, which have the key type of enum
> ----------------------------------------------------------------------------
>
>                 Key: BEANUTILS-453
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-453
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.3, 1.8.4, 1.9.0
>            Reporter: vakhtang koroghlishvili
>            Priority: Critical
>              Labels: features, patch, test
>         Attachments: MapWithEnumKey_withTestCase.patch
>
>
> There was no why, to get value from the map, which have key type of Enum. So 
> I solve the problem and I will upload my patch (with Junit test cases).



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to