net.codescore.ui.components.list.renderers
Class ListComparator<T>
java.lang.Object
net.codescore.ui.components.list.renderers.ListComparator<T>
- All Implemented Interfaces:
- Comparator<T>
- Direct Known Subclasses:
- ProbBrowseRenderer.ProblemSorter, ScoreboardRenderer.ScoreboardSorter, SimpleCompetitionRenderer.CompetitionSorter, SimplePersonRenderer.PersonSorter, SimpleSchoolRenderer.SchoolSorter, SimpleTeamRenderer.TeamSorter, TestCaseRenderer.ScoreboardSorter
public abstract class ListComparator<T>
- extends Object
- implements Comparator<T>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
col
private final int col
dir
private final FullRenderer.Direction dir
ListComparator
public ListComparator(int c,
FullRenderer.Direction d)
getCol
public int getCol()
getDir
public FullRenderer.Direction getDir()
checkDir
protected int checkDir(int rv)
- Parameters:
rv - The return value of the comparator
- Returns:
- rv*-1 if dir is desc, rv if dir is asc
Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.