This implements the numeric comparison relations: <, <=, etc.
TRUE_IF_EQU
public static final int TRUE_IF_EQU
TRUE_IF_GRT
public static final int TRUE_IF_GRT
TRUE_IF_LSS
public static final int TRUE_IF_LSS
TRUE_IF_NAN
public static final int TRUE_IF_NAN
TRUE_IF_NEQ
public static final int TRUE_IF_NEQ
$Eq
public static boolean $Eq(Object arg1,
Object arg2)
$Eq$V
public static boolean $Eq$V(Object arg1,
Object arg2,
Object arg3,
Object[] rest)
$Gr
public static boolean $Gr(Object arg1,
Object arg2)
$Gr$Eq
public static boolean $Gr$Eq(Object arg1,
Object arg2)
$Gr$Eq$V
public static boolean $Gr$Eq$V(Object arg1,
Object arg2,
Object arg3,
Object[] rest)
$Gr$V
public static boolean $Gr$V(Object arg1,
Object arg2,
Object arg3,
Object[] rest)
$Ls
public static boolean $Ls(Object arg1,
Object arg2)
$Ls$Eq
public static boolean $Ls$Eq(Object arg1,
Object arg2)
$Ls$Eq$V
public static boolean $Ls$Eq$V(Object arg1,
Object arg2,
Object arg3,
Object[] rest)
$Ls$V
public static boolean $Ls$V(Object arg1,
Object arg2,
Object arg3,
Object[] rest)
apply2
public Object apply2(Object arg1,
Object arg2)
- apply2 in interface ProcedureN
apply2
public static boolean apply2(int flags,
Object arg1,
Object arg2)
applyWithPromotion
public static boolean applyWithPromotion(int flags,
Object arg1,
Object arg2)
checkCompareCode
public static boolean checkCompareCode(int code,
int flags)
compare
public static int compare(Object arg1,
Object arg2,
boolean exact)
Compare two numbers.
exact
- true if we should compare exact/inexact numbers exactly
(by converting the inexact number to exact), or inexactly (by
"promoting" the exact to inexact) (as required for XQuery).
- 1 if
arg1>arg2
; 0 if arg1==arg2
;
-1 if arg1; -2 if either is NaN
;
-3 if not comparable (either is not a number).
compare
public static int compare(Object arg1,
int code1,
Object arg2,
int code2,
boolean exact)
getLanguage
protected final Language getLanguage()