Class BinaryMatchKey31

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

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

    • BinaryMatchKey31

      public BinaryMatchKey31(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.