geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (GEODE-641) Allow lambda expressions to be used for Geode functions
Date Fri, 06 May 2016 21:41:13 GMT


ASF subversion and git services commented on GEODE-641:

Commit 15a2a29d996c60831ec67bb8f565660950e67a29 in incubator-geode's branch refs/heads/feature/GEODE-1276
from [~upthewaterspout]
[;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:
>             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

View raw message