[
https://issues.apache.org/jira/browse/GEODE-641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15273377#comment-15273377
]
ASF subversion and git services commented on GEODE-641:
-------------------------------------------------------
Commit 15a2a29d996c60831ec67bb8f565660950e67a29 in incubator-geode's branch
refs/heads/develop from [~upthewaterspout]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=15a2a29 ]
GEODE-641: Adding default methods to the Function interface
Adding default methods to Function so that Function is now a functional
interface and lambda expressions can be used for functions.
> Allow lambda expressions to be used for Geode functions
> -------------------------------------------------------
>
> Key: GEODE-641
> URL: https://issues.apache.org/jira/browse/GEODE-641
> Project: Geode
> Issue Type: Improvement
> Components: docs, functions
> Reporter: Dan Smith
> Assignee: Dan Smith
> Labels: starter
>
> Geode currently has a Function interface, as well as a FunctionAdapter
> abstract class that provides default implementations for most of those
> methods.
> Unfortunately, because Function has multiple methods, lambda expressions
> cannot be used to define functions.
> FunctionAdapter should be deprecated and default values should be provided
> for all of the methods on Function except for the execute method.
> The getId function can probably just default to the class name.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)