[
https://issues.apache.org/jira/browse/GEODE-2217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963756#comment-15963756
]
ASF GitHub Bot commented on GEODE-2217:
---------------------------------------
GitHub user dalyssakim opened a pull request:
https://github.com/apache/geode/pull/447
Feature/geode 2217
JIRA : https://issues.apache.org/jira/browse/GEODE-2217
Let me know if we want to change the parameter descriptions.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dalyssakim/incubator-geode feature/GEODE-2217
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/geode/pull/447.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #447
----
commit d3c6b339af85d4be78f53bc092049f7849350835
Author: Alyssa Kim <[email protected]>
Date: 2017-04-11T03:14:12Z
GEODE=2217
Add generic type parameter to FunctionContext interface
commit d9cd09f9a983c1c820be13fbee271c2baaa9cf11
Author: Alyssa Kim <[email protected]>
Date: 2017-04-11T03:27:07Z
GEODE-2217
Add generic type parameter to FunctionContext interface
Minor change in comments
commit a3ef95d4a6b0fffa775cf9469e5c4e79eec89b77
Author: Alyssa Kim <[email protected]>
Date: 2017-04-11T03:31:23Z
GEODE-2217
Add generic type parameter to FunctionContext interface
Minor change in comments.
----
> 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
> Assignee: Alyssa Kim
>
> 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.15#6346)