Uploaded image for project: 'Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub)'
  1. Quartz Scheduler (Historical - Do Not File New Issues Here - See GitHub)
  2. QTZ-184

GroupMatcher API changes to avoid generics compiler warnings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 2 Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1
    • Component/s: Core
    • Labels:
      None
    • Terracotta Target:
      Quartz 2.1.0
    • Fixed In Revision:
      1612-1616

      Description

      the code neet update like this:
      public class GroupMatcherUtils<T extends Key<T>> extends GroupMatcher<T> {
      /**

      • */
        private static final long serialVersionUID = 1L;

      protected GroupMatcherUtils(String compareTo, StringOperatorName compareWith)

      { super(compareTo, compareWith); }

      /**

      • Create a GroupMatcher that matches groups equaling the given string.
        */
        public static <T extends Key<T>> GroupMatcher<T> groupEquals(String compareTo) { return new GroupMatcherUtils<T>(compareTo, StringOperatorName.EQUALS); }

      /**

      • Create a GroupMatcher that matches groups starting with the given string.
        */
        public static <T extends Key<T>> GroupMatcher<T> groupStartsWith(String compareTo) { return new GroupMatcherUtils<T>(compareTo, StringOperatorName.STARTS_WITH); }

      /**

      • Create a GroupMatcher that matches groups ending with the given string.
        */
        public static <T extends Key<T>> GroupMatcher<T> groupEndsWith(String compareTo) { return new GroupMatcherUtils<T>(compareTo, StringOperatorName.ENDS_WITH); }

      /**

      • Create a GroupMatcher that matches groups containing the given string.
        */
        public static <T extends Key<T>> GroupMatcher<T> groupContains(String compareTo) { return new GroupMatcherUtils<T>(compareTo, StringOperatorName.CONTAINS); }

        }

        Attachments

          Activity

            People

            • Assignee:
              jhouse James House
              Reporter:
              kxlele le yang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: