Class LineComparator

java.lang.Object
org.gbif.utils.text.LineComparator
All Implemented Interfaces:
Comparator<String>

public class LineComparator extends Object implements Comparator<String>
A comparator for delimited lines that compares the content of a given column number for all rows. This allows to sort for example tab delimited files by any column and not only the first one.

If no explicit comparator is given a string comparison is done for the actual column content.