org.encog.app.analyst.csv.sort
Class RowComparator
java.lang.Object
org.encog.app.analyst.csv.sort.RowComparator
- All Implemented Interfaces:
- Comparator<LoadedRow>
public class RowComparator
- extends Object
- implements Comparator<LoadedRow>
Used to compare two LoadedRow objects.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowComparator
public RowComparator(SortCSV owner)
- Construct the object.
- Parameters:
owner - The owner.
compare
public final int compare(LoadedRow x,
LoadedRow y)
- Compare two LoadedRow objects.
- Specified by:
compare in interface Comparator<LoadedRow>
- Parameters:
x - The first object to compare.y - The second object to compare.
- Returns:
- 0 if the same, <0 x is less, >0 y is less.
Copyright © 2012. All Rights Reserved.