Package graphql.schema.diffing
Class Mapping
java.lang.Object
graphql.schema.diffing.Mapping
A mapping (in the math sense) from a list of vertices to another list of
vertices.
A mapping can semantically mean a change, but doesn't have to: a vertex
can be mapped to the same vertex (semantically the same, Java object wise they are different).
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleancontainsSource(Vertex sourceVertex) booleancontainsTarget(Vertex targetVertex) copy()extendMapping(Vertex source, Vertex target) intvoidforEachNonFixedSourceAndTarget(BiConsumer<? super Vertex, ? super Vertex> consumer) voidforEachNonFixedTarget(Consumer<? super Vertex> action) voidforEachTarget(Consumer<? super Vertex> action) getSource(int i) getTarget(int i) booleaninvert()static MappingnewMapping(Map<Vertex, Vertex> fixedParentRestrictions, com.google.common.collect.BiMap<Vertex, Vertex> fixedMappings, List<Vertex> fixedSourceList, List<Vertex> fixedTargetList) intintsize()
-
Method Details
-
newMapping
-
hasParentRestriction
-
getParentRestriction
-
getSource
-
getTarget
-
getSource
-
getTarget
-
containsSource
-
containsTarget
-
contains
-
size
public int size() -
fixedSize
public int fixedSize() -
nonFixedSize
public int nonFixedSize() -
add
-
copyMappingWithLastElementRemoved
-
copy
-
extendMapping
-
forEachTarget
-
forEachNonFixedTarget
-
forEachNonFixedSourceAndTarget
-
invert
-