public interface FunctionalObject
$apply
signature that allows invoking
an object.
The code o.$apply(args)
is transpiled to o(args)
.
Implementing this interface is not mandatory to create a functional object.
Just defining the $apply
function is enough. It is however
recommended to implement this interface for readbility sake.
Modifier and Type | Method and Description |
---|---|
<R> R |
$apply(Object... arguments) |
<R> R $apply(Object... arguments)