org.norvelle.textcite.model.sort
Class PageRefSortComparator

java.lang.Object
  extended by org.norvelle.textcite.model.sort.SortComparator
      extended by org.norvelle.textcite.model.sort.PageRefSortComparator

public abstract class PageRefSortComparator
extends SortComparator


Field Summary
 
Fields inherited from class org.norvelle.textcite.model.sort.SortComparator
ASCENDING, DESCENDING, direction
 
Constructor Summary
PageRefSortComparator()
           
PageRefSortComparator(int direction)
           
 
Method Summary
 int compare(Citation citation1, Citation citation2)
           
 
Methods inherited from class org.norvelle.textcite.model.sort.SortComparator
getDirection, signalChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageRefSortComparator

public PageRefSortComparator(int direction)

PageRefSortComparator

public PageRefSortComparator()
Method Detail

compare

public int compare(Citation citation1,
                   Citation citation2)
Specified by:
compare in class SortComparator
Returns:
a negative integer, zero, or a positive integer as the first object is less than, equal to, or greater than the second object.