Package net.sf.saxon.value
Class DurationValue.DurationComparable
- java.lang.Object
-
- net.sf.saxon.value.DurationValue.DurationComparable
-
- All Implemented Interfaces:
java.lang.Comparable<DurationValue.DurationComparable>
- Enclosing class:
- DurationValue
public static class DurationValue.DurationComparable extends java.lang.Object implements java.lang.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 Constructor Description DurationComparable(int m, long s, int nanos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(DurationValue.DurationComparable other)
Compare two durations according to the XML Schema rules.boolean
equals(java.lang.Object o)
int
hashCode()
-
-
-
Method Detail
-
compareTo
public int compareTo(DurationValue.DurationComparable other)
Compare two durations according to the XML Schema rules.- Specified by:
compareTo
in interfacejava.lang.Comparable<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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-