Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-259

TransformerClosure should implement Transformer and allow extension.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 3.2
    • None
    • Functor
    • None

    Description

      TransformerClosure currently decorates a transformer. However, in the interests of non-verbose code, it makes sense to be able to subclass it for a class that implements both interfaces.

      I propose the addition of the following constructor and method

      protected TransformerClosure(){
      iTransformer = this;
      }

      public O transform(I in){
      return iTransformer.transform();
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            shammah Stephen Kestle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: