public class MutablePath extends java.lang.Object implements Path, java.io.Serializable
Path.Exceptions| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.util.Set<java.lang.String>> |
labels |
protected java.util.List<java.lang.Object> |
objects |
| Modifier | Constructor and Description |
|---|---|
protected |
MutablePath() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(java.lang.String label)
Add label to the current head of the path.
|
MutablePath |
clone() |
Path |
extend(java.lang.Object object,
java.lang.String... labels)
Add a new step to the path with an object and any number of associated labels.
|
<A> A |
get(int index)
Get the object associated with the specified index into the path.
|
boolean |
hasLabel(java.lang.String label)
Return true if the path has the specified label, else return false.
|
java.util.List<java.util.Set<java.lang.String>> |
labels()
An ordered list of the labels associated with the path
|
static Path |
make() |
java.util.List<java.lang.Object> |
objects()
An ordered list of the objects in the path.
|
int |
size()
Get the number of step in the path.
|
java.lang.String |
toString() |
protected java.util.List<java.lang.Object> objects
protected java.util.List<java.util.Set<java.lang.String>> labels
public static Path make()
public MutablePath clone() throws java.lang.CloneNotSupportedException
Pathpublic int size()
Pathpublic Path extend(java.lang.Object object, java.lang.String... labels)
Pathpublic <A> A get(int index)
Pathpublic boolean hasLabel(java.lang.String label)
Pathpublic void addLabel(java.lang.String label)
Pathpublic java.util.List<java.lang.Object> objects()
Pathpublic java.util.List<java.util.Set<java.lang.String>> labels()
Pathpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2013-2015 TinkerPop. All Rights Reserved.