net.sourceforge.bee
Class QuestionRightAnswerComparator

java.lang.Object
  extended by 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.


Constructor Summary
QuestionRightAnswerComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Describe compare method here.
 boolean equals(Object obj)
          Describe equals method here.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionRightAnswerComparator

public QuestionRightAnswerComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Describe compare method here.

Specified by:
compare in interface Comparator
Parameters:
o1 - an Object value
o2 - 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