public class VisitationTimeComparator<VertexType extends GraphVertex<VertexType>>
extends java.lang.Object
implements java.util.Comparator<VertexType>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
ASCENDING
Compare in ascending order.
|
static int |
DESCENDING
Compare in descending order.
|
Constructor and Description |
---|
VisitationTimeComparator(int[] visitationTimeList,
int direction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(VertexType v1,
VertexType v2) |
public static final int ASCENDING
public static final int DESCENDING
public VisitationTimeComparator(int[] visitationTimeList, int direction)
visitationTimeList
- array of visitation times indexed by vertex labeldirection
- either ASCENDING or DESCENDINGpublic int compare(VertexType v1, VertexType v2)
compare
in interface java.util.Comparator<VertexType extends GraphVertex<VertexType>>
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.