logback-android/src/main/java/ch/qos/logback/core/joran/spi/SimpleRuleStore.java
List<Action> suffixMatch(ElementPath elementPath) {
    int max = 0;
    ElementSelector longestMatchingElementSelector = null;

    for (ElementSelector selector : rules.keySet()) {
      if (isSuffixPattern(selector)) {
        int r = selector.getTailMatchLength(elementPath);
        if (r > max) {
          max = r;
          longestMatchingElementSelector = selector;
        }
      }
    }

    if (longestMatchingElementSelector != null) {
      return rules.get(longestMatchingElementSelector);
    } else {
      return null;
    }
  }
List<Action> suffixMatch(ElementPath elementPath) {
    int max = 0;
    ElementSelector longestMatchingElementSelector = null;

    for (ElementSelector selector : rules.keySet()) {
      if (isSuffixPattern(selector)) {
        int r = selector.getTailMatchLength(elementPath);
        if (r > max) {
          max = r;
          longestMatchingElementSelector = selector;
        }
      }
    }

    if (longestMatchingElementSelector != null) {
      return rules.get(longestMatchingElementSelector);
    } else {
      return null;
    }
  }
List < Action > suffixMatch ( ElementPath elementPath ) { int max = 0 ; ElementSelector longestMatchingElementSelector = null ; for ( ElementSelector selector : rules . keySet ( ) ) { if ( isSuffixPattern ( selector ) ) { int r = selector . getTailMatchLength ( elementPath ) ; if ( r > max ) { max = r ; longestMatchingElementSelector = selector ; } } } if ( longestMatchingElementSelector != null ) { return rules . get ( longestMatchingElementSelector ) ; } else { return null ; } }
Suffix matches are matches of type */x/y
Suffix matches are matches of type * / x / y