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

Model should provide other Optional's methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 8.0.0-M6
    • 8.0.0-M8
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: