vishnu.model
Class RecordComparator

java.lang.Object
  extended by vishnu.model.RecordComparator
All Implemented Interfaces:
java.util.Comparator<Record>

public class RecordComparator
extends java.lang.Object
implements java.util.Comparator<Record>

Sirve para hacer sorting de records sobre una columna especificada en el cosntructor.

Author:
Mariano Tepper
 

Constructor Summary
RecordComparator(java.lang.String columnSorted)
           
 
Method Summary
 int compare(Record arg0, Record arg1)
           
 java.lang.String getColumnName()
           
 
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

RecordComparator

public RecordComparator(java.lang.String columnSorted)
Method Detail

compare

public int compare(Record arg0,
                   Record arg1)
Specified by:
compare in interface java.util.Comparator<Record>

getColumnName

public java.lang.String getColumnName()