net.sourceforge.bee
Class QuestionTextComparator

java.lang.Object
  extended by net.sourceforge.bee.QuestionTextComparator
All Implemented Interfaces:
Comparator

public class QuestionTextComparator
extends Object
implements Comparator

Compares two questions alphabetically by their correct answer text. FIXME: move to pavlov.library.


Constructor Summary
QuestionTextComparator()
           
 
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

QuestionTextComparator

public QuestionTextComparator()
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