Class ImmutablePath
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.process.traversal.step.util.ImmutablePath
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable,- Iterable<Object>,- Path
 
 public class ImmutablePath extends Object implements Path, Serializable, Cloneable - Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.process.traversal.PathPath.Exceptions
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutablePathclone()booleanequals(Object other)Pathextend(Object object, Set<String> labels)Add a new step to the path with an object and any number of associated labels.Pathextend(Set<String> labels)Add labels to the head of the path.<A> Aget(int index)Get the object associated with the specified index into the path.<A> Aget(Pop pop, String label)Pop the object(s) associated with the label of the path.inthashCode()booleanhasLabel(String label)Return true if the path has the specified label, else return false.<A> Ahead()Get the head of the path.booleanisEmpty()Determine if the path is empty or not.booleanisSimple()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 whichPath.extend(Object, Set)was called.static Pathmake()List<Object>objects()An ordered list of the objects in the path.booleanpopEquals(Pop pop, Object other)Pathretract(Set<String> labels)Remove labels from path.intsize()Get the number of step in the path.StringtoString()- 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Method Detail- 
makepublic static Path make() 
 - 
clonepublic ImmutablePath clone() 
 - 
isEmptypublic boolean isEmpty() Description copied from interface:PathDetermine if the path is empty or not.
 - 
sizepublic int size() Description copied from interface:PathGet the number of step in the path.
 - 
headpublic <A> A head() Description copied from interface:PathGet the head of the path.
 - 
extendpublic Path extend(Object object, Set<String> labels) Description copied from interface:PathAdd a new step to the path with an object and any number of associated labels.
 - 
extendpublic Path extend(Set<String> labels) Description copied from interface:PathAdd labels to the head of the path.
 - 
retractpublic Path retract(Set<String> labels) Description copied from interface:PathRemove labels from path.
 - 
getpublic <A> A get(int index) Description copied from interface:PathGet the object associated with the specified index into the path.
 - 
getpublic <A> A get(Pop pop, String label) Description copied from interface:PathPop the object(s) associated with the label of the path.
 - 
hasLabelpublic boolean hasLabel(String label) Description copied from interface:PathReturn true if the path has the specified label, else return false.
 - 
objectspublic List<Object> objects() Description copied from interface:PathAn ordered list of the objects in the path.
 - 
labelspublic List<Set<String>> labels() Description copied from interface:PathAn ordered list of the labels associated with the path The set of labels for a particular step are ordered by the order in whichPath.extend(Object, Set)was called.
 
- 
 
-