You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Benson (JIRA)" <ji...@apache.org> on 2008/04/10 20:48:05 UTC
[jira] Commented: (SANDBOX-224) [functor] Parent interface for all
functors
[ 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.