You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Nikolay Izhikov (Jira)" <ji...@apache.org> on 2020/05/25 12:24:00 UTC
[jira] [Updated] (IGNITE-13069) Rewrite creation of IgniteInClosure
and IgniteOutClosure as lambda expression
[ https://issues.apache.org/jira/browse/IGNITE-13069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikolay Izhikov updated IGNITE-13069:
-------------------------------------
Labels: newbie (was: )
> Rewrite creation of IgniteInClosure and IgniteOutClosure as lambda expression
> -----------------------------------------------------------------------------
>
> Key: IGNITE-13069
> URL: https://issues.apache.org/jira/browse/IGNITE-13069
> Project: Ignite
> Issue Type: New Feature
> Affects Versions: 2.8
> Reporter: Nikolay Izhikov
> Priority: Trivial
> Labels: newbie
>
> We can use lambda expression instead of direct instantiation of IgniteInClosure, IgniteOutClosure.
> This:
> {code:java}
> state = new DirectMessageState<>(StateItem.class, new IgniteOutClosure<StateItem>() {
> @Override public StateItem apply() {
> return new StateItem(msgFactory, protoVer);
> }
> });
> {code}
> Can be replaced with:
> {code:java}
> state = new DirectMessageState<>(StateItem.class, () -> new StateItem(msgFactory, protoVer));
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)