You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Josh Cain (JIRA)" <ji...@apache.org> on 2013/11/22 16:16:36 UTC
[jira] [Created] (COLLECTIONS-503) IfTransformer
Josh Cain created COLLECTIONS-503:
-------------------------------------
Summary: IfTransformer
Key: COLLECTIONS-503
URL: https://issues.apache.org/jira/browse/COLLECTIONS-503
Project: Commons Collections
Issue Type: New Feature
Components: Functor
Reporter: Josh Cain
Priority: Trivial
Attachments: 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
(v6.1#6144)