View Javadoc
1 package com.gotjava.model.calendar; 2 3 import java.util.Comparator; 4 5 /*** 6 * Compares two CalendarEvents for sorting by the Collection.sort() methods. 7 * @author J Aaron Farr 8 */ 9 public class EventComparator implements Comparator { 10 11 public EventComparator(){ 12 } 13 14 /*** 15 * compares two events 16 **/ 17 public int compare(Object evt1, Object evt2){ 18 return 0; 19 } 20 21 /*** 22 * determines if two events are equal. Events are only equal if the 23 * UID, seq and recurrence ID are identical. 24 */ 25 public boolean equals(Object evt1, Object evt2){ 26 return true; 27 } 28 29 }

This page was automatically generated by Maven