| java.lang.Object prefuse.data.util.TupleComparator
TupleComparator | public class TupleComparator implements Comparator(Code) | | Comparator that compares Tuples based on the value of a single field.
author: jeffrey heer |
Constructor Summary | |
public | TupleComparator(String field, Class type, boolean ascend) Creates a new TupleComparator. | public | TupleComparator(String field, Class type, boolean ascend, Comparator c) Creates a new TupleComparator.
Parameters: field - the data field to compare Parameters: type - the expected type of the data field Parameters: ascend - true to sort in ascending order, false for descending Parameters: c - the comparator to use. | public | TupleComparator(int col, Class type, boolean ascend) Creates a new TupleComparator. | public | TupleComparator(int col, Class type, boolean ascend, Comparator c) Creates a new TupleComparator. |
TupleComparator | public TupleComparator(String field, Class type, boolean ascend)(Code) | | Creates a new TupleComparator.
Parameters: field - the data field to compare Parameters: type - the expected type of the data field Parameters: ascend - true to sort in ascending order, false for descending |
TupleComparator | public TupleComparator(String field, Class type, boolean ascend, Comparator c)(Code) | | Creates a new TupleComparator.
Parameters: field - the data field to compare Parameters: type - the expected type of the data field Parameters: ascend - true to sort in ascending order, false for descending Parameters: c - the comparator to use. Note that for primitive types,this should be an instance of LiteralComparator, otherwisesubequent errors will occur. |
TupleComparator | public TupleComparator(int col, Class type, boolean ascend)(Code) | | Creates a new TupleComparator.
Parameters: col - the column number of the data field to compare Parameters: type - the expected type of the data field Parameters: ascend - true to sort in ascending order, false for descending |
TupleComparator | public TupleComparator(int col, Class type, boolean ascend, Comparator c)(Code) | | Creates a new TupleComparator.
Parameters: col - the column number of the data field to compare Parameters: type - the expected type of the data field Parameters: ascend - true to sort in ascending order, false for descending |
|
|