You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "Dan Smith (JIRA)" <ji...@apache.org> on 2016/12/19 23:56:59 UTC
[jira] [Updated] (GEODE-2217) Add generic type parameter to
FunctionContext interface
[ https://issues.apache.org/jira/browse/GEODE-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Smith updated GEODE-2217:
-----------------------------
Assignee: (was: Mark Bretl)
> Add generic type parameter to FunctionContext interface
> -------------------------------------------------------
>
> Key: GEODE-2217
> URL: https://issues.apache.org/jira/browse/GEODE-2217
> Project: Geode
> Issue Type: Bug
> Components: functions
> Reporter: Jared Stewart
>
> FunctionContext has a method getArguments() that returns Object. It would be nice to have getArguments return a known type instead.
> ```
> public interface FunctionContext <T> {
> public T getArguments();
> }
> ```
> The Function interface would then allow users to bound the expected argument type:
> ```
> public interface Function<T> {
> public void execute(FunctionContext<T> context);
> }
> ```
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)