Package graphql.schema.diffing
Class EditOperation
- java.lang.Object
-
- graphql.schema.diffing.EditOperation
-
public class EditOperation extends java.lang.Object
An edit operation between two graphs can be one of six types: insert vertex, delete vertex, change vertex, insert edge, delete edge, change edge
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EditOperation.Operation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EditOperation
changeEdge(java.lang.String description, Edge sourceEdge, Edge targetEdge)
static EditOperation
changeVertex(java.lang.String description, Vertex sourceVertex, Vertex targetVertex)
static EditOperation
deleteEdge(java.lang.String description, Edge sourceEdge)
static EditOperation
deleteVertex(java.lang.String description, Vertex sourceVertex, Vertex targetVertex)
boolean
equals(java.lang.Object o)
EditOperation.Operation
getOperation()
Edge
getSourceEdge()
Vertex
getSourceVertex()
Edge
getTargetEdge()
Vertex
getTargetVertex()
int
hashCode()
static EditOperation
insertEdge(java.lang.String description, Edge targetEdge)
static EditOperation
insertVertex(java.lang.String description, Vertex sourceVertex, Vertex targetVertex)
java.lang.String
toString()
-
-
-
Method Detail
-
deleteVertex
public static EditOperation deleteVertex(java.lang.String description, Vertex sourceVertex, Vertex targetVertex)
-
insertVertex
public static EditOperation insertVertex(java.lang.String description, Vertex sourceVertex, Vertex targetVertex)
-
changeVertex
public static EditOperation changeVertex(java.lang.String description, Vertex sourceVertex, Vertex targetVertex)
-
deleteEdge
public static EditOperation deleteEdge(java.lang.String description, Edge sourceEdge)
-
insertEdge
public static EditOperation insertEdge(java.lang.String description, Edge targetEdge)
-
changeEdge
public static EditOperation changeEdge(java.lang.String description, Edge sourceEdge, Edge targetEdge)
-
getOperation
public EditOperation.Operation getOperation()
-
getSourceVertex
public Vertex getSourceVertex()
-
getTargetVertex
public Vertex getTargetVertex()
-
getSourceEdge
public Edge getSourceEdge()
-
getTargetEdge
public Edge getTargetEdge()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-