commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Cain (JIRA)" <>
Subject [jira] [Updated] (COLLECTIONS-503) IfTransformer
Date Sun, 08 Dec 2013 02:38:35 GMT


Josh Cain updated COLLECTIONS-503:

    Attachment: ifTransformer.patch

Uploaded new patch file with unit test.  A few comments:

# I wanted to use a number of test classes that would accurately represent this scenario.
 I went ahead and just threw them all in the same test class, but it might not hurt to put
these in some sort of test fixture section.  Let me know if you want me to create such a section
- that way the functor tests can benefit from one another.
# As I start developing on OSS projects, I'd like to try to link them to me somehow ("I promise,
I submitted patches" usually doesn't fly in job interviews).  Is there a way to use pull requests
from a git hosted site, link to ohloh, etc?

> IfTransformer
> -------------
>                 Key: COLLECTIONS-503
>                 URL:
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Functor
>            Reporter: Josh Cain
>            Priority: Trivial
>             Fix For: 4.0.1
>         Attachments: ifTransformer.patch, ifTransformer.patch
> Just thought a basic ifTransformer that performs operations based on a predicate would
be useful.  I know this functionality can be accomplished via a switchTransformer, but sometimes
it would just be easier and more clear to have an ifTransformer.
> I attached a draft of what it could look like.  Let me know if this is something that
should be included and I can polish it and write some tests.

This message was sent by Atlassian JIRA

View raw message