Package net.sf.saxon.value
Class NestedIntegerValue
- java.lang.Object
-
- net.sf.saxon.value.NestedIntegerValue
-
- All Implemented Interfaces:
Comparable<NestedIntegerValue>
public class NestedIntegerValue extends Object implements 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 Modifier and Type Field Description static NestedIntegerValueONEstatic NestedIntegerValueTWO(package private) int[]value
-
Constructor Summary
Constructors Constructor Description NestedIntegerValue(int[] val)NestedIntegerValue(String v)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NestedIntegerValueappend(int leaf)intcompareTo(NestedIntegerValue other)booleanequals(Object o)intgetDepth()intgetLeaf()NestedIntegerValuegetStem()inthashCode()Returns a hash code value for the object.static NestedIntegerValueparse(String v)
-
-
-
Field Detail
-
ONE
public static NestedIntegerValue ONE
-
TWO
public static NestedIntegerValue TWO
-
value
int[] value
-
-
Constructor Detail
-
NestedIntegerValue
public NestedIntegerValue(String v) throws XPathException
- Throws:
XPathException
-
NestedIntegerValue
public NestedIntegerValue(int[] val)
-
-
Method Detail
-
parse
public static NestedIntegerValue parse(String v) throws XPathException
- Throws:
XPathException
-
append
public NestedIntegerValue append(int leaf)
-
getStem
public NestedIntegerValue getStem()
-
getDepth
public int getDepth()
-
getLeaf
public int getLeaf()
-
hashCode
public int hashCode()
Returns a hash code value for the object.
-
compareTo
public int compareTo(NestedIntegerValue other)
- Specified by:
compareToin interfaceComparable<NestedIntegerValue>
-
-