Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2818

Add overrides for XxxDomainEvent for hide/disable/invalidate to evaluate a supplier

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.0-M5
    • 2.0.0-M6
    • Core
    • None

    Description

      Rather than:

      if (hubCurrentService.currentHub().isEmpty()) {
        ev.hide();
      } 

      I'd prefer to write:

      ev.hideIf(hubCurrentService.currentHub().isEmpty());

      or more flexibly:

      ev.hideIf(() -> hubCurrentService.currentHub().isEmpty()); 

       

      Attachments

        Activity

          People

            hobrom Andi Huber
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: