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

[Wish] Add new "optionalX" supporting method for parameters so that its optionality can be toggled

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.0.0-M5
    • None
    • None

    Description

      We can of course validate using validateNXxx(), but the idea here is to toggle off or on the optionality constraint for N>0 parameters based on earlier parameters,

      eg:

      public void act(SomeType type, String someParam) {
      }
      public boolean optional1Act(SomeType type) {
          if (type == SomeType.FOO || type == SomeType.BAR) return true;
          return false;
      } 

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: