Package graphql.util
Class NodeMultiZipper<T>
- java.lang.Object
-
- graphql.util.NodeMultiZipper<T>
-
@PublicApi public class NodeMultiZipper<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NodeMultiZipper(T commonRoot, java.util.List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getCommonRoot()
NodeZipper<T>
getZipperForNode(T node)
java.util.List<NodeZipper<T>>
getZippers()
static <T> NodeMultiZipper<T>
newNodeMultiZipperTrusted(T commonRoot, java.util.List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter)
int
size()
T
toRootNode()
NodeMultiZipper<T>
withNewZipper(NodeZipper<T> newZipper)
NodeMultiZipper<T>
withReplacedZipper(NodeZipper<T> oldZipper, NodeZipper<T> newZipper)
NodeMultiZipper<T>
withReplacedZipperForNode(T currentNode, T newNode)
NodeMultiZipper<T>
withReplacedZippers(java.util.List<NodeZipper<T>> zippers)
-
-
-
Constructor Detail
-
NodeMultiZipper
public NodeMultiZipper(T commonRoot, java.util.List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter)
-
-
Method Detail
-
newNodeMultiZipperTrusted
public static <T> NodeMultiZipper<T> newNodeMultiZipperTrusted(T commonRoot, java.util.List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter)
-
toRootNode
public T toRootNode()
- Returns:
- can be null if the root node is marked as deleted
-
getCommonRoot
public T getCommonRoot()
-
getZippers
public java.util.List<NodeZipper<T>> getZippers()
-
size
public int size()
-
getZipperForNode
public NodeZipper<T> getZipperForNode(T node)
-
withReplacedZippers
public NodeMultiZipper<T> withReplacedZippers(java.util.List<NodeZipper<T>> zippers)
-
withNewZipper
public NodeMultiZipper<T> withNewZipper(NodeZipper<T> newZipper)
-
withReplacedZipper
public NodeMultiZipper<T> withReplacedZipper(NodeZipper<T> oldZipper, NodeZipper<T> newZipper)
-
withReplacedZipperForNode
public NodeMultiZipper<T> withReplacedZipperForNode(T currentNode, T newNode)
-
-