Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6396

Model should provide other Optional's methods

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.0.0-M6
    • Fix Version/s: 8.0.0-M8
    • Component/s: None
    • Labels:
      None

      Description

      Model should provide

      public <X extends Throwable> T orElseThrow(Supplier<? extends X> exceptionSupplier) throws X;
      
      public boolean isPresent();
      
      public void ifPresent(Consumer<? super T> consumer);
      

      methods for the sake of consistency with Optional API

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                svenmeier Sven Meier
                Reporter:
                eximius Kamil
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: