Class DataRowComparator
java.lang.Object
com.github.martincooper.datatable.sorting.DataRowComparator
- All Implemented Interfaces:
Comparator<DataRow>
DataRowComparator class. Used to compare two data rows using the specified sort items.
Created by Martin Cooper on 29/07/2017.
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
compare
THe main compare method.- Specified by:
comparein interfaceComparator<DataRow>- Parameters:
rowOne- The first row to compare.rowTwo- The seconds row to compare.- Returns:
- Returns the compare result as an integer.
-