commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33525] New: - [functor][Enhancement]Parent interface for all functors
Date Fri, 11 Feb 2005 18:54:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33525>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33525

           Summary: [functor][Enhancement]Parent interface for all functors
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jorne@eubot.com


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

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message