commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vakhtang koroghlishvili (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (BEANUTILS-453) there was no why, to get value from the map, which have the key type of enum
Date Fri, 22 Nov 2013 13:24:35 GMT

    [ 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:23 PM:
-----------------------------------------------------------------------------

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).



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)?  We should not 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)

Mime
View raw message