WIDAR Classes

ca.nrc.widar.mccc.crmGui
Class CrmGuiTableModel.IdCustomComparator

java.lang.Object
  extended by ca.nrc.widar.mccc.crmGui.CrmGuiTableModel.IdCustomComparator
All Implemented Interfaces:
java.util.Comparator<ca.nrc.widar.jaxb.crm.Diagnostic>
Enclosing class:
CrmGuiTableModel

public class CrmGuiTableModel.IdCustomComparator
extends java.lang.Object
implements java.util.Comparator<ca.nrc.widar.jaxb.crm.Diagnostic>

A custom comparator that compares two diagnostic IDs

 

Constructor Summary
CrmGuiTableModel.IdCustomComparator(int dir)
           
 
Method Summary
 int compare(ca.nrc.widar.jaxb.crm.Diagnostic d1, ca.nrc.widar.jaxb.crm.Diagnostic d2)
           
 
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
 

Constructor Detail

CrmGuiTableModel.IdCustomComparator

public CrmGuiTableModel.IdCustomComparator(int dir)
Method Detail

compare

public int compare(ca.nrc.widar.jaxb.crm.Diagnostic d1,
                   ca.nrc.widar.jaxb.crm.Diagnostic d2)
Specified by:
compare in interface java.util.Comparator<ca.nrc.widar.jaxb.crm.Diagnostic>

NRAO/DRAO

National Radio Astronomy Observatory