public final class EmptyPath extends Object implements Path, Serializable
Path.Exceptions| Modifier and Type | Method and Description | 
|---|---|
| EmptyPath | clone() | 
| boolean | equals(Object object) | 
| 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(String label)Get the object associated with the particular label of the path. | 
| int | hashCode() | 
| boolean | hasLabel(String label)Return true if the path has the specified label, else return false. | 
| static Path | instance() | 
| boolean | isSimple()Determines whether the path is a simple or not. | 
| 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. | 
| List<Object> | objects()An ordered list of the objects in the path. | 
| int | size()Get the number of step in the path. | 
finalize, getClass, notify, notifyAll, toString, wait, wait, waitforEach, get, iterator, popEquals, streamforEach, spliteratorpublic int size()
Pathpublic Path extend(Object object, Set<String> labels)
Pathpublic Path extend(Set<String> labels)
Pathpublic <A> A get(String label)
PathList of those objects.public <A> A get(int index)
Pathpublic boolean hasLabel(String label)
Pathpublic List<Object> objects()
Pathpublic List<Set<String>> labels()
PathPath.extend(Object, Set) was called.public boolean isSimple()
Pathpublic EmptyPath clone()
public static Path instance()
Copyright © 2013–2015 Apache Software Foundation. All rights reserved.