Package openGql.grammar
Class InsertEdgeAndNode
- java.lang.Object
-
- openGql.grammar.InsertEdgeAndNode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InsertEdgeAndNode>
public class InsertEdgeAndNode extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<InsertEdgeAndNode>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description InsertEdgePatternedgestatic NameEDGEName of theopenGql.grammar.InsertEdgeAndNode.edgefield.Optional<InsertElementPatternFiller>nodestatic NameNODEName of theopenGql.grammar.InsertEdgeAndNode.nodefield.static NameTYPE_Name of theopenGql.grammar.InsertEdgeAndNodetype.
-
Constructor Summary
Constructors Constructor Description InsertEdgeAndNode(InsertEdgePattern edge, Optional<InsertElementPatternFiller> node)Constructs an immutableInsertEdgeAndNode.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(InsertEdgeAndNode other)booleanequals(java.lang.Object other)inthashCode()InsertEdgeAndNodewithEdge(InsertEdgePattern edge)Returns a copy of thisInsertEdgeAndNodewithedgereplaced.InsertEdgeAndNodewithNode(Optional<InsertElementPatternFiller> node)Returns a copy of thisInsertEdgeAndNodewithnodereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.InsertEdgeAndNodetype.
-
EDGE
public static final Name EDGE
Name of theopenGql.grammar.InsertEdgeAndNode.edgefield.
-
NODE
public static final Name NODE
Name of theopenGql.grammar.InsertEdgeAndNode.nodefield.
-
edge
public final InsertEdgePattern edge
-
node
public final Optional<InsertElementPatternFiller> node
-
-
Constructor Detail
-
InsertEdgeAndNode
public InsertEdgeAndNode(InsertEdgePattern edge, Optional<InsertElementPatternFiller> node)
Constructs an immutableInsertEdgeAndNode.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(InsertEdgeAndNode other)
- Specified by:
compareToin interfacejava.lang.Comparable<InsertEdgeAndNode>
-
withEdge
public InsertEdgeAndNode withEdge(InsertEdgePattern edge)
Returns a copy of thisInsertEdgeAndNodewithedgereplaced.
-
withNode
public InsertEdgeAndNode withNode(Optional<InsertElementPatternFiller> node)
Returns a copy of thisInsertEdgeAndNodewithnodereplaced.
-
-