commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SANDBOX-224) [functor] Parent interface for all functors
Date Thu, 10 Apr 2008 18:48:05 GMT

    [ https://issues.apache.org/jira/browse/SANDBOX-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587750#action_12587750
] 

Matt Benson commented on SANDBOX-224:
-------------------------------------

I don't have a problem with this.

> [functor] Parent interface for all functors
> -------------------------------------------
>
>                 Key: SANDBOX-224
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-224
>             Project: Commons Sandbox
>          Issue Type: Improvement
>          Components: Functor
>         Environment: Operating System: All
> Platform: All
>            Reporter: Brian D. Eubanks
>            Priority: Minor
>
> Functor Enhancement: Parent interface for all functors
> I would like to see an empty Functor interface as a marker for all functors.
> This would be useful for storing functors in typed Maps, providing functor
> metadata lookup (e.g. parameters and return types), and passing functors
> generically as method parameters. It's an easy enhancement to make, and
> potentially very powerful.
> public interface Functor {}
> public interface Predicate extends Functor 
> public interface UnaryPredicate extends Functor 
> public interface BinaryPredicate extends Functor 
> public interface Function extends Functor 
> public interface UnaryFunction extends Functor 
> public interface BinaryFunction extends Functor 
> public interface Procedure extends Functor
> public interface UnaryProcedure extends Functor
> public interface BinaryProcedure extends Functor

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message