You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2019/12/13 15:27:00 UTC

[jira] [Commented] (GROOVY-8519) Groovy should provide collect DGM variants for Optional and Future

    [ https://issues.apache.org/jira/browse/GROOVY-8519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16995704#comment-16995704 ] 

Eric Milles commented on GROOVY-8519:
-------------------------------------

Groovy 2.5 has {{org.codehaus.groovy.vmplugin.v8.PluginDefaultGroovyMethods}}:

{code:java}
public static <S,T> Optional<T> collect(Optional<S> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<T> transform)
public static <S,T> Future<T> collect(Future<S> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<T> transform)
{code}

> Groovy should provide collect DGM variants for Optional and Future
> ------------------------------------------------------------------
>
>                 Key: GROOVY-8519
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8519
>             Project: Groovy
>          Issue Type: Task
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)