eTextReader.AnnotationListing
Class NotationListing.NotationComparator

java.lang.Object
  extended by eTextReader.AnnotationListing.NotationListing.NotationComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
NotationListing

public class NotationListing.NotationComparator
extends java.lang.Object
implements java.util.Comparator

A custom comparator class that facilitates sorting based on primary and secondary sorting criteria.


Field Summary
(package private)  int key1
           
(package private)  int key2
           
(package private)  boolean pasc
           
(package private)  boolean sasc
           
 
Constructor Summary
NotationListing.NotationComparator(java.lang.String primaryKey, java.lang.String secondaryKey, boolean porder, boolean sorder)
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 boolean equals(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key1

int key1

key2

int key2

pasc

boolean pasc

sasc

boolean sasc
Constructor Detail

NotationListing.NotationComparator

public NotationListing.NotationComparator(java.lang.String primaryKey,
                                          java.lang.String secondaryKey,
                                          boolean porder,
                                          boolean sorder)
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in interface java.util.Comparator

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object