net.sourceforge.bee
Class QuestionRightAnswerComparator
java.lang.Object
net.sourceforge.bee.QuestionRightAnswerComparator
- All Implemented Interfaces:
- Comparator
public class QuestionRightAnswerComparator
- extends Object
- implements Comparator
Compares two questions alphabetically by their correct answer text.
FIXME: move to pavlov.library.
QuestionRightAnswerComparator
public QuestionRightAnswerComparator()
compare
public int compare(Object o1,
Object o2)
- Describe
compare
method here.
- Specified by:
compare
in interface Comparator
- Parameters:
o1
- an Object
valueo2
- an Object
value
- Returns:
- an
int
value
equals
public boolean equals(Object obj)
- Describe
equals
method here.
- Specified by:
equals
in interface Comparator
- Overrides:
equals
in class Object
- Parameters:
obj
- an Object
value
- Returns:
- a
boolean
value