commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <>
Subject [jira] [Resolved] (COLLECTIONS-503) IfTransformer
Date Sun, 08 Dec 2013 11:44:42 GMT


Thomas Neidhart resolved COLLECTIONS-503.

    Resolution: Fixed

Applied the patch with a few modifications in r1549021:

 * changed javadoc a bit
 * added methods in TransformerUtils
 * deprecated TransformerUtils.switchTransformer(Predicate, Transformer, Transformer)

Thanks for the patch!

You name appears in the changelog and you are also in the list of contributors (see also

> 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