Code example for XMLGregorianCalendar

Methods: compare

0
		@Override 
		public int compare(Object o1, Object o2) {
			TimestampMaster master = new TimestampMaster();
			XMLGregorianCalendar timestamp1 = master.getTimestamp(o1);
			XMLGregorianCalendar timestamp2 = master.getTimestamp(o2);
			return timestamp2.compare(timestamp1);
		} 
	} 
	 
	/** 
	 * @return the final response of the last execution of this replication 
	 * protocol. If there was no execution of this protocol yet or if there's 
	 * an undergoing execution, null is returned 
	 */ 
	public Object getResponse() { return this.finalResponse; }
	 
	/** 
	 * Sets the final response of the protocol's execution. 
	 * @param resp 
	 * 		the desired response