org.tfe.console.Tables
Class AlertCollectionComparator

java.lang.Object
  |
  +--org.tfe.console.Tables.AlertCollectionComparator
All Implemented Interfaces:
java.util.Comparator

public class AlertCollectionComparator
extends java.lang.Object
implements java.util.Comparator


Field Summary
protected  boolean sortAsc
           
protected  int sortCol
           
 
Constructor Summary
AlertCollectionComparator(int sortCol, boolean sortAsc)
          Creates new AlertCollectionComparator
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

sortCol

protected int sortCol

sortAsc

protected boolean sortAsc
Constructor Detail

AlertCollectionComparator

public AlertCollectionComparator(int sortCol,
                                 boolean sortAsc)
Creates new AlertCollectionComparator

Method Detail

compare

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