net.sourceforge.bee
Class QuestionIDComparator

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

public class QuestionIDComparator
extends Object
implements Comparator

For sorting questions by ID. FIXME: move to pavlov.library.


Constructor Summary
QuestionIDComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Describe compare method here.
 boolean equals(Object obj)
          Returns true if this comparator is equal to another comparator.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionIDComparator

public QuestionIDComparator()
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)
Returns true if this comparator is equal to another comparator. Simply returns false. FIXME: any reason to really implement this?

Specified by:
equals in interface Comparator
Overrides:
equals in class Object
Parameters:
obj - an Object value
Returns:
a boolean value