public class MutablePath extends Object implements Path, Serializable
Path.Exceptions| Modifier and Type | Field and Description | 
|---|---|
protected List<Set<String>> | 
labels  | 
protected List<Object> | 
objects  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
MutablePath()  | 
| Modifier and Type | Method and Description | 
|---|---|
MutablePath | 
clone()  | 
boolean | 
equals(Object other)  | 
Path | 
extend(Object object,
      Set<String> labels)
Add a new step to the path with an object and any number of associated labels. 
 | 
Path | 
extend(Set<String> labels)
Add labels to the head of the path. 
 | 
<A> A | 
get(int index)
Get the object associated with the specified index into the path. 
 | 
<A> A | 
get(Pop pop,
   String label)
Pop the object(s) associated with the label of the path. 
 | 
int | 
hashCode()  | 
boolean | 
hasLabel(String label)
Return true if the path has the specified label, else return false. 
 | 
<A> A | 
head()
Get the head of the path. 
 | 
boolean | 
isEmpty()
Determine if the path is empty or not. 
 | 
Iterator<Object> | 
iterator()  | 
List<Set<String>> | 
labels()
An ordered list of the labels associated with the path
 The set of labels for a particular step are ordered by the order in which  
Path.extend(Object, Set) was called. | 
static Path | 
make()  | 
List<Object> | 
objects()
An ordered list of the objects in the path. 
 | 
Path | 
retract(Set<String> removeLabels)
Remove labels from path. 
 | 
int | 
size()
Get the number of step in the path. 
 | 
String | 
toString()  | 
finalize, getClass, notify, notifyAll, wait, wait, waitforEach, get, isSimple, popEquals, stream, subPathforEach, spliteratorpublic static Path make()
public MutablePath clone()
public boolean isEmpty()
Pathpublic <A> A head()
Pathpublic int size()
Pathpublic Path extend(Object object, Set<String> labels)
Pathpublic Path extend(Set<String> labels)
Pathpublic Path retract(Set<String> removeLabels)
Pathpublic <A> A get(int index)
Pathpublic <A> A get(Pop pop, String label)
Pathpublic boolean hasLabel(String label)
Pathpublic List<Object> objects()
Pathpublic List<Set<String>> labels()
PathPath.extend(Object, Set) was called.Copyright © 2013–2021 Apache Software Foundation. All rights reserved.