Class BinaryMatchKey40

java.lang.Object
net.sf.saxon.expr.sort.BinaryMatchKey40
All Implemented Interfaces:
AtomicMatchKey

public class BinaryMatchKey40 extends Object implements AtomicMatchKey
A match key used when comparing binary values as defined in XPath 4.0, which makes hexBinary and base64Binary comparable. This applies both to comparison using "eq" and to comparison of keys in a map.
  • Constructor Details

    • BinaryMatchKey40

      public BinaryMatchKey40(BinaryValue value)
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • asAtomic

      public AtomicValue asAtomic()
      Get an atomic value that encapsulates this match key. Needed to support the collation-key() function.
      Specified by:
      asAtomic in interface AtomicMatchKey
      Returns:
      an atomic value that encapsulates this match key. NB: this is NOT (necessarily) the atomic value from which the AtomicMatchKey was derived.