Package openGql.grammar
Class PathElementList
- java.lang.Object
-
- openGql.grammar.PathElementList
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PathElementList>
public class PathElementList extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<PathElementList>
A GQL path element list- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPathElementList.BuilderA fluent builder forPathElementList.
-
Field Summary
Fields Modifier and Type Field Description PrimaryValueExpressionstartstatic NameSTARTName of theopenGql.grammar.PathElementList.startfield.java.util.List<PathElementListStep>stepsstatic NameSTEPSName of theopenGql.grammar.PathElementList.stepsfield.static NameTYPE_Name of theopenGql.grammar.PathElementListtype.
-
Constructor Summary
Constructors Constructor Description PathElementList(PrimaryValueExpression start, java.util.List<PathElementListStep> steps)Constructs an immutablePathElementList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PathElementList.Builderbuilder()Creates a new fluent builder forPathElementList.intcompareTo(PathElementList other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()PathElementListwithStart(PrimaryValueExpression start)Returns a copy of thisPathElementListwithstartreplaced.PathElementListwithSteps(java.util.List<PathElementListStep> steps)Returns a copy of thisPathElementListwithstepsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.PathElementListtype.
-
START
public static final Name START
Name of theopenGql.grammar.PathElementList.startfield.
-
STEPS
public static final Name STEPS
Name of theopenGql.grammar.PathElementList.stepsfield.
-
start
public final PrimaryValueExpression start
-
steps
public final java.util.List<PathElementListStep> steps
-
-
Constructor Detail
-
PathElementList
public PathElementList(PrimaryValueExpression start, java.util.List<PathElementListStep> steps)
Constructs an immutablePathElementList.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(PathElementList other)
- Specified by:
compareToin interfacejava.lang.Comparable<PathElementList>
-
withStart
public PathElementList withStart(PrimaryValueExpression start)
Returns a copy of thisPathElementListwithstartreplaced.
-
withSteps
public PathElementList withSteps(java.util.List<PathElementListStep> steps)
Returns a copy of thisPathElementListwithstepsreplaced.
-
builder
public static PathElementList.Builder builder()
Creates a new fluent builder forPathElementList.
-
-