public static final class GraphAnalyzer.Path extends GraphAnalyzer.IndexedLists implements java.lang.Cloneable
FastLinkedList.Entry
Constructor and Description |
---|
Path(Port startPort)
Construct a path, which has 0 length, with only a start port.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone this path and return a new path containing the same entries
between the same pair of ports.
|
boolean |
equals(java.lang.Object object)
Test the equivalence between two paths.
|
Port |
getEndPort()
Get the end port of this path.
|
Port |
getStartPort()
Get the start port of this path.
|
int |
hashCode()
Return the hash code of this path, which is a combination of the
start port's hash code and a hash code computed with all the entries
inside.
|
java.lang.String |
toString()
Return a string that describes this path.
|
add, addAll, addEntryAfter, addEntryBefore, addEntryToHead, addEntryToTail, clear, contains, containsAll, findEntry, getHead, getTail, isEmpty, iterator, remove, removeAll, removeAllAfter, removeAllBefore, retainAll, size, toArray, toArray
Path(Port startPort)
startPort
- The start port.public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in interface java.util.Collection<GraphAnalyzer.IndexedList>
equals
in class java.lang.Object
object
- The object to be tested.public Port getEndPort()
public Port getStartPort()
public int hashCode()
hashCode
in interface java.util.Collection<GraphAnalyzer.IndexedList>
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object