@Test public void sortDirDesc() { assertEquals("desc sort dir", SortDir.DESC, TableModel.sortDir("desc")); }
public static SortDir sortDir(String s) { return !DESC.equals(s) ? SortDir.ASC : SortDir.DESC; }
TableModel { public static SortDir sortDir(String s) { return !DESC.equals(s) ? SortDir.ASC : SortDir.DESC; } }
TableModel { public static SortDir sortDir(String s) { return !DESC.equals(s) ? SortDir.ASC : SortDir.DESC; } TableModel(String... columnIds); }
TableModel { public static SortDir sortDir(String s) { return !DESC.equals(s) ? SortDir.ASC : SortDir.DESC; } TableModel(String... columnIds); int rowCount(); int columnCount(); String[] getColumnIds(); Row[] getRows(); void addAnnotation(String key, Object value); Collection<Annot> getAnnotations(); void setComparator(String columnId, CellComparator comparator); void setFormatter(String columnId, CellFormatter formatter); CellFormatter getFormatter(String columnId); Row addRow(); void sort(String id1, SortDir dir1, String id2, SortDir dir2); static SortDir sortDir(String s); }
TableModel { public static SortDir sortDir(String s) { return !DESC.equals(s) ? SortDir.ASC : SortDir.DESC; } TableModel(String... columnIds); int rowCount(); int columnCount(); String[] getColumnIds(); Row[] getRows(); void addAnnotation(String key, Object value); Collection<Annot> getAnnotations(); void setComparator(String columnId, CellComparator comparator); void setFormatter(String columnId, CellFormatter formatter); CellFormatter getFormatter(String columnId); Row addRow(); void sort(String id1, SortDir dir1, String id2, SortDir dir2); static SortDir sortDir(String s);  }