Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2217

Add generic type parameter to FunctionContext interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • functions
    • None

    Description

      FunctionContext has a method getArguments() that returns Object. It would be nice to have getArguments return a known type instead.

      public interface FunctionContext <T> {
        public T getArguments();
      }
      

      The Function interface would then allow users to bound the expected argument type:

      public interface Function<T> {
        public void execute(FunctionContext<T> context);
      }
      

      Attachments

        Issue Links

          Activity

            People

              dalyssakim Alyssa Kim
              jstewart Jared Stewart
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: