Package net.sf.saxon.value
Class DurationValue.DurationComparable
java.lang.Object
net.sf.saxon.value.DurationValue.DurationComparable
- All Implemented Interfaces:
Comparable<DurationValue.DurationComparable>
- Enclosing class:
DurationValue
public static class DurationValue.DurationComparable
extends Object
implements Comparable<DurationValue.DurationComparable>
DurationValueComparable is a Comparable value that acts as a surrogate for a Duration,
having ordering rules that implement the XML Schema specification.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compare two durations according to the XML Schema rules.boolean
int
hashCode()
-
Constructor Details
-
DurationComparable
public DurationComparable(int m, long s, int nanos)
-
-
Method Details
-
compareTo
Compare two durations according to the XML Schema rules.- Specified by:
compareTo
in interfaceComparable<DurationValue.DurationComparable>
- Parameters:
other
- the other duration- Returns:
- -1 if this duration is smaller; 0 if they are equal; +1 if this duration is greater;
SequenceTool.INDETERMINATE_ORDERING
if there is no defined order
-
equals
-
hashCode
public int hashCode()
-