edu.cmu.andrew.icalendar
Class AgendaComparator
java.lang.Object
|
+--edu.cmu.andrew.icalendar.AgendaComparator
- All Implemented Interfaces:
- Comparator
- public class AgendaComparator
- extends Object
- implements Comparator
Implementation of Comparator
for use with
Agenda
objects. Useful for
doing such things as putting agendas in java.util.TreeMap
and other collections that need to compare objects on insertion.
- Author:
- miles
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
AgendaComparator
public AgendaComparator()
compare
public int compare(Object o1,
Object o2)
throws ClassCastException
- Specified by:
compare
in interface Comparator
equals
public boolean equals(Object obj)
- Specified by:
equals
in interface Comparator
- Overrides:
equals
in class Object