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

Kamil commented on WICKET-6396:
-------------------------------

[~svenmeier] - thank you
[~solomax] - maybe the best of two worlds would be "toOptional" as [~papegaaij] 
suggested 
[here|https://issues.apache.org/jira/browse/WICKET-6396?focusedCommentId=16049085&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16049085]
 ?

> Model should provide other Optional's methods
> ---------------------------------------------
>
>                 Key: WICKET-6396
>                 URL: https://issues.apache.org/jira/browse/WICKET-6396
>             Project: Wicket
>          Issue Type: Improvement
>    Affects Versions: 8.0.0-M6
>            Reporter: Kamil
>            Assignee: Sven Meier
>            Priority: Minor
>             Fix For: 8.0.0-M8
>
>
> Model should provide
> {code}
> public <X extends Throwable> T orElseThrow(Supplier<? extends X> 
> exceptionSupplier) throws X;
> {code}
> {code}
> public boolean isPresent();
> {code}
> {code}
> public void ifPresent(Consumer<? super T> consumer);
> {code}
> methods for the sake of consistency with Optional API



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to