public class NestedIntegerValue extends java.lang.Object implements java.lang.Comparable<NestedIntegerValue>
The class provides "smart" ordering, for example 1 < 1.2 < 1.12 < 1.12.6
| Modifier and Type | Field and Description |
|---|---|
static NestedIntegerValue |
ONE |
static NestedIntegerValue |
TWO |
| Constructor and Description |
|---|
NestedIntegerValue(int[] val) |
NestedIntegerValue(java.lang.String v) |
| Modifier and Type | Method and Description |
|---|---|
NestedIntegerValue |
append(int leaf) |
int |
compareTo(NestedIntegerValue other) |
boolean |
equals(java.lang.Object o) |
int |
getDepth() |
int |
getLeaf() |
NestedIntegerValue |
getStem() |
int |
hashCode()
Returns a hash code value for the object.
|
static NestedIntegerValue |
parse(java.lang.String v) |
public static NestedIntegerValue ONE
public static NestedIntegerValue TWO
public NestedIntegerValue(java.lang.String v)
throws XPathException
XPathExceptionpublic NestedIntegerValue(int[] val)
public static NestedIntegerValue parse(java.lang.String v) throws XPathException
XPathExceptionpublic NestedIntegerValue append(int leaf)
public NestedIntegerValue getStem()
public int getDepth()
public int getLeaf()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(NestedIntegerValue other)
compareTo in interface java.lang.Comparable<NestedIntegerValue>Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.