Class SimpleNameMatcher

All Implemented Interfaces:
Serializable

public class SimpleNameMatcher extends HashedMatcherBase implements Serializable
Basic PropertyNameMatcher that uses case-sensitive match and does not require (or expect) that names passed as arguments have been String.intern()ed.
See Also:
  • Constructor Details

  • Method Details

    • constructFrom

      public static SimpleNameMatcher constructFrom(Locale locale, List<Named> propertyNames, boolean alreadyInterned)
      Factory method for constructing case-sensitive matcher that only supports matching from `String`.
      Parameters:
      locale - Locale to use (relevant for case-insensitive matchers)
      propertyNames - Names to match
      alreadyInterned - Whether underlying Strings have been String.intern()ed or not
      Returns:
      Matcher constructed
    • construct

      public static SimpleNameMatcher construct(Locale locale, List<String> propertyNames)
      Factory method for constructing case-sensitive matcher that only supports matching from `String`.
      Parameters:
      locale - Locale to use (relevant for case-insensitive matchers)
      propertyNames - Names to match
      Returns:
      Matcher constructed
    • constructCaseInsensitive

      public static SimpleNameMatcher constructCaseInsensitive(Locale locale, List<Named> propertyNames, boolean alreadyInterned)
    • constructCaseInsensitive

      public static SimpleNameMatcher constructCaseInsensitive(Locale locale, List<String> names)
    • matchByQuad

      public int matchByQuad(int q1)
      Specified by:
      matchByQuad in class PropertyNameMatcher
    • matchByQuad

      public int matchByQuad(int q1, int q2)
      Specified by:
      matchByQuad in class PropertyNameMatcher
    • matchByQuad

      public int matchByQuad(int q1, int q2, int q3)
      Specified by:
      matchByQuad in class PropertyNameMatcher
    • matchByQuad

      public int matchByQuad(int[] q, int qlen)
      Specified by:
      matchByQuad in class PropertyNameMatcher