commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Radford Tam (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COLLECTIONS-356) Request for a Many-to-Many BidiMap
Date Sun, 24 Nov 2013 16:02:35 GMT

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

Radford Tam commented on COLLECTIONS-356:
-----------------------------------------

Yes, I've been considering this. I've already had to override much of the test code for BidiMap
while writing the unit test, because a lot of it assumes the one-to-one relationship.

Let me think more on it.

> Request for a Many-to-Many BidiMap
> ----------------------------------
>
>                 Key: COLLECTIONS-356
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-356
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Collection
>            Reporter: Franz Wong
>            Priority: Minor
>             Fix For: 4.x
>
>
> Currently, BidiMap supports one to one relationship. However, in real life, there are
many many-to-many relationships. Take an example of student and course. One student can take
many courses while one course contain many students. It would be useful to have a class to
manipulate such situation.
> The work around currently is using 2 hash maps.



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

Mime
View raw message