- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
public static int compareXmlGregorianCalendars(XMLGregorianCalendar left, XMLGregorianCalendar right) {
	 int result = left.compare(right);
	 if (result == DatatypeConstants.LESSER)
		 return -1;
	 else if (result == DatatypeConstants.EQUAL)
		 return 0;
	 else if (result == DatatypeConstants.GREATER)
		 return 1;
	 else
		 throw new RuntimeException("Indeterminate result when comparing XMLGregorianCalendars.");
 }
 Follow us!
 Follow us!