Package graphql.schema.diffing
Class EditOperation
java.lang.Object
graphql.schema.diffing.EditOperation
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 -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
EditOperation
(EditOperation.Operation operation, String description, Vertex sourceVertex, Vertex targetVertex, Edge sourceEdge, Edge targetEdge) -
Method Summary
Modifier and TypeMethodDescriptionstatic EditOperation
changeEdge
(String description, Edge sourceEdge, Edge targetEdge) static EditOperation
changeVertex
(String description, Vertex sourceVertex, Vertex targetVertex) static EditOperation
deleteEdge
(String description, Edge sourceEdge) static EditOperation
deleteVertex
(String description, Vertex sourceVertex, Vertex targetVertex) boolean
int
hashCode()
static EditOperation
insertEdge
(String description, Edge targetEdge) static EditOperation
insertVertex
(String description, Vertex sourceVertex, Vertex targetVertex) toString()
-
Field Details
-
operation
-
description
-
sourceVertex
-
targetVertex
-
sourceEdge
-
targetEdge
-
-
Constructor Details
-
EditOperation
-
-
Method Details
-
deleteVertex
public static EditOperation deleteVertex(String description, Vertex sourceVertex, Vertex targetVertex) -
insertVertex
public static EditOperation insertVertex(String description, Vertex sourceVertex, Vertex targetVertex) -
changeVertex
public static EditOperation changeVertex(String description, Vertex sourceVertex, Vertex targetVertex) -
deleteEdge
-
insertEdge
-
changeEdge
-
getOperation
-
getSourceVertex
-
getTargetVertex
-
getSourceEdge
-
getTargetEdge
-
toString
-
equals
-
hashCode
public int hashCode()
-