net.sf.saxon.sort
Class ComparisonKey
java.lang.Object
net.sf.saxon.sort.ComparisonKey
public class ComparisonKey
extends java.lang.Object
An object used as a comparison key. Two XPath atomic values are equal under the "eq" operator
if and only if their comparison keys are equal under the Java equals() method.
ComparisonKey(int category, Object value) - Create a comparison key for a value in a particular category.
|
boolean | equals(Object other) - Test if two comparison keys are equal
|
int | hashCode() - Get a hashcode for a comparison key.
|
ComparisonKey
public ComparisonKey(int category,
Object value)
Create a comparison key for a value in a particular category. The "category" here represents a
set of primitive types that allow mutual comparison (so all numeric values are in the same category).
category
- the categoryvalue
- the value within the category
equals
public boolean equals(Object other)
Test if two comparison keys are equal
other
- the other comparison key
hashCode
public int hashCode()
Get a hashcode for a comparison key. If two comparison keys are equal, they must have the same hash code.