public class Edge extends Object implements IEdge
IEdge
interface.Constructor and Description |
---|
Edge(Comparable<String> nodeFrom,
Comparable<String> nodeTo) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
Compares this edge to the given one using
the
nodes first. |
boolean |
equals(Object obj) |
Object |
getFrom()
Get the node this edge originates from.
|
Object |
getTo()
Get the node this edge points to.
|
int |
hashCode() |
String |
toString() |
public Edge(Comparable<String> nodeFrom, Comparable<String> nodeTo)
nodeFrom
- nodeTo
- public Object getFrom()
IEdge
public Object getTo()
IEdge
public int compareTo(Object o)
getFrom()
nodes first.
If those are equal the getTo()
}
is used for comparison.compareTo
in interface Comparable<Object>
Comparable.compareTo(java.lang.Object)
Copyright © 2002–2024. All rights reserved.