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 NestedIntegerValue
ONE
static NestedIntegerValue
TWO
-
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 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)
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value for the object.- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(NestedIntegerValue other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<NestedIntegerValue>
-
-