Package net.sf.saxon.value
Class NestedIntegerValue
java.lang.Object
net.sf.saxon.value.NestedIntegerValue
- All Implemented Interfaces:
Comparable<NestedIntegerValue>
This class represents a dot-separated sequence of numbers such as 1.12.5, typically
used as a software version number.
The class provides "smart" ordering, for example 1 < 1.2 < 1.12 < 1.12.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend
(int leaf) int
compareTo
(NestedIntegerValue other) boolean
int
getDepth()
int
getLeaf()
getStem()
int
hashCode()
Returns a hash code value for the object.static NestedIntegerValue
-
Field Details
-
ONE
-
TWO
-
-
Constructor Details
-
NestedIntegerValue
- Throws:
XPathException
-
NestedIntegerValue
public NestedIntegerValue(int[] val)
-
-
Method Details
-
parse
- Throws:
XPathException
-
append
-
getStem
-
getDepth
public int getDepth() -
getLeaf
public int getLeaf() -
equals
-
hashCode
public int hashCode()Returns a hash code value for the object. -
compareTo
- Specified by:
compareTo
in interfaceComparable<NestedIntegerValue>
-