[
https://issues.apache.org/jira/browse/ISIS-2818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17385731#comment-17385731
]
ASF subversion and git services commented on ISIS-2818:
-------------------------------------------------------
Commit 36ccf8ffadae995ba1cf5402c4aa1d85885afbea in isis's branch
refs/heads/master from Andi Huber
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=36ccf8f ]
ISIS-2818: java-doc typo
> Add overrides for XxxDomainEvent for hide/disable/veto to evaluate a function
> or supplier
> -----------------------------------------------------------------------------------------
>
> Key: ISIS-2818
> URL: https://issues.apache.org/jira/browse/ISIS-2818
> Project: Isis
> Issue Type: Improvement
> Components: Isis Core
> Affects Versions: 2.0.0-M5
> Reporter: Daniel Keir Haywood
> Assignee: Andi Huber
> Priority: Trivial
> Fix For: 2.0.0-M6
>
>
> Rather than:
> {code:java}
> if (hubCurrentService.currentHub().isEmpty()) {
> ev.hide();
> } {code}
> I'd prefer to write:
> {code:java}
> ev.hideIf(hubCurrentService.currentHub().isEmpty());{code}
> or more flexibly:
> {code:java}
> ev.hideIf(() -> hubCurrentService.currentHub().isEmpty()); {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)