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