Class HashedMatcherBase

java.lang.Object
tools.jackson.core.sym.PropertyNameMatcher
tools.jackson.core.sym.HashedMatcherBase
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BinaryNameMatcher, SimpleNameMatcher

public abstract class HashedMatcherBase extends PropertyNameMatcher
Intermediate base class for matchers that use hash-array based approach with Strings.
See Also:
  • Field Details

    • _mask

      protected final int _mask
      Mask used to get index from raw hash code, within hash area.
    • _offsets

      protected final int[] _offsets
    • _names

      protected final String[] _names
  • Constructor Details

  • Method Details

    • matchName

      public final int matchName(String toMatch)
      Description copied from class: PropertyNameMatcher
      Lookup method that does not assume name to be matched to be String.intern()ed (although passing interned String is likely to result in more efficient matching).
      Specified by:
      matchName in class PropertyNameMatcher
      Parameters:
      toMatch - Name to match
      Returns:
      Index of the name matched, if any (non-negative number); or an error code (negative constant MATCH_xxx) if none
    • _matchSpill

      protected int _matchSpill(String toMatch)
    • spillCount

      public int spillCount()
    • secondaryCount

      public int secondaryCount()