Skip to content
This repository was archived by the owner on Aug 19, 2020. It is now read-only.
This repository was archived by the owner on Aug 19, 2020. It is now read-only.

Add additional helper closures #350

@JLLeitschuh

Description

@JLLeitschuh

Providing a few of the more commonly used closure types in kotlin would be useful, for example:

open class NoArgKotlinClosure<V : Any>(
    val function : () -> V?,
    owner: Any? = null,
    thisObject: Any? = null) : groovy.lang.Closure<V?>(owner, thisObject) {

    @Suppress("unused") // to be called dynamically by Groovy
    fun doCall() : V? = function()
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions