public static final class PathFinder.Path extends java.util.AbstractList<Relationship>
Relationship path from a starting shape to an end shape.| Constructor and Description |
|---|
Path(java.util.List<Relationship> relationships) |
| Modifier and Type | Method and Description |
|---|---|
Relationship |
get(int index) |
Shape |
getEndShape()
Gets the ending shape of the
Path that
matched the selector and is connected to the
starting shape. |
java.util.List<Shape> |
getShapes()
Gets a list of all shapes in the path including the starting
shape all the way to the last shape.
|
Shape |
getStartShape()
Gets the starting shape of the
Path. |
int |
size() |
java.lang.String |
toString()
Converts the path to valid
Selector syntax. |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic Path(java.util.List<Relationship> relationships)
public int size()
size in interface java.util.Collection<Relationship>size in interface java.util.List<Relationship>size in class java.util.AbstractCollection<Relationship>public Relationship get(int index)
get in interface java.util.List<Relationship>get in class java.util.AbstractList<Relationship>public java.util.List<Shape> getShapes()
The returned list does not return the last element (the end shape targeted by the last neighbor) if it does not exist.
public Shape getStartShape()
Path.public Shape getEndShape()
Path that
matched the selector and is connected to the
starting shape.SourceException - if the last relationship is invalid.public java.lang.String toString()
Selector syntax.toString in class java.util.AbstractCollection<Relationship>