Package graphql.schema.diffing
Class Mapping
- java.lang.Object
-
- graphql.schema.diffing.Mapping
-
public class Mapping extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Mapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Vertex source, Vertex target)
boolean
containsSource(Vertex sourceVertex)
boolean
containsTarget(Vertex targetVertex)
Mapping
copy()
boolean
equals(java.lang.Object o)
Mapping
extendMapping(Vertex source, Vertex target)
com.google.common.collect.BiMap<Vertex,Vertex>
getMap()
Vertex
getSource(int i)
Vertex
getSource(Vertex target)
java.util.List<Vertex>
getSources()
Vertex
getTarget(int i)
Vertex
getTarget(Vertex source)
java.util.List<Vertex>
getTargets()
int
hashCode()
Mapping
removeLastElement()
int
size()
-
-
-
Method Detail
-
getSource
public Vertex getSource(int i)
-
getTarget
public Vertex getTarget(int i)
-
getTargets
public java.util.List<Vertex> getTargets()
-
getSources
public java.util.List<Vertex> getSources()
-
containsSource
public boolean containsSource(Vertex sourceVertex)
-
containsTarget
public boolean containsTarget(Vertex targetVertex)
-
size
public int size()
-
removeLastElement
public Mapping removeLastElement()
-
copy
public Mapping copy()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-