Package ubic.basecode.dataStructure
Class Link
- java.lang.Object
-
- ubic.basecode.dataStructure.Point
-
- ubic.basecode.dataStructure.Link
-
- All Implemented Interfaces:
Comparable<Link>
public class Link extends Point implements Comparable<Link>
Implements comparable, which sorts by the 'x' coordinate and then secondarily by the 'y' coordinate. (This behavior is important for some applications).- Author:
- Paul Pavlidis
-
-
Method Detail
-
compareTo
public int compareTo(Link arg)
- Specified by:
compareTo
in interfaceComparable<Link>
-
getWeight
public double getWeight()
- Returns:
- double
-
-