|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscheduler.db.instructordb.TimePreferenceComparator
public class TimePreferenceComparator
TimePreferenceCompare
Constructor Summary | |
---|---|
TimePreferenceComparator()
|
Method Summary | |
---|---|
int |
compare(java.lang.Object obj1,
java.lang.Object obj2)
Compare method to compare TimePreferences |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public TimePreferenceComparator()
Method Detail |
---|
public int compare(java.lang.Object obj1, java.lang.Object obj2)
compare
in interface java.util.Comparator
obj1
- Object TimePreferenceobj2
- Object TimePreference
// ** Pre and Post conditions ** // Pre: // obj1 can not be null obj1 != nil && // obj2 can not be null obj2 != nil && // obj1 and obj2 must be of type TimePreference obj1 instanceof(TimePreference) && obj2 instanceof(TimePreference) // The return must be 1,0,-1 return <= 1 && return >= -1
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |