org.norvelle.textcite.model.sort
Class OutlineSortComparator

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

public abstract class OutlineSortComparator
extends SortComparator

OutlineSortComparator: Compares two Citations based on their Outline locations. Also provides the ability to signal a listener when the two Citations are not the same.

Author:
Erik Norvelle

Field Summary
 
Fields inherited from class org.norvelle.textcite.model.sort.SortComparator
ASCENDING, DESCENDING, direction
 
Constructor Summary
OutlineSortComparator()
           
OutlineSortComparator(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

OutlineSortComparator

public OutlineSortComparator(int direction)

OutlineSortComparator

public OutlineSortComparator()
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.