public static class Precondition.NumericComparisonPrecondition extends Precondition
Precondition.BooleanPrecondition, Precondition.NumericComparisonPrecondition, Precondition.StringHashPrecondition
Constructor and Description |
---|
NumericComparisonPrecondition(Characteristic<NumericValue> characteristic,
long required) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
testPrecondition(PreconditionMatcher matcher)
Compute the value of the precondition for a given item.
|
java.lang.String |
toString() |
isSatisfied, setSlotNumber
public NumericComparisonPrecondition(Characteristic<NumericValue> characteristic, long required)
public boolean testPrecondition(PreconditionMatcher matcher) throws XPathException
Precondition
testPrecondition
in class Precondition
matcher
- the PreconditionMatcher: holds the dynamic context for evaluation.XPathException
- if evaluation of the precondition fails with a dynamic errorpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.