Class NodeMultiZipper<T>
java.lang.Object
graphql.util.NodeMultiZipper<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Tprivate final NodeAdapter<T> private final com.google.common.collect.ImmutableList<NodeZipper<T>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionNodeMultiZipper(T commonRoot, List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter) privateNodeMultiZipper(T commonRoot, List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter, Object dummy) -
Method Summary
Modifier and TypeMethodDescriptionprivate List<NodeZipper<T>> getDeepestZippers(Set<NodeZipper<T>> zippers) getZipperForNode(T node) List<NodeZipper<T>> private NodeZipper<T> moveUp(T parent, List<NodeZipper<T>> sameParent) static <T> NodeMultiZipper<T> newNodeMultiZipperTrusted(T commonRoot, List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter) intsize()withNewZipper(NodeZipper<T> newZipper) withReplacedZipper(NodeZipper<T> oldZipper, NodeZipper<T> newZipper) withReplacedZipperForNode(T currentNode, T newNode) withReplacedZippers(List<NodeZipper<T>> zippers) private Map<T, com.google.common.collect.ImmutableList<NodeZipper<T>>> zipperWithSameParent(List<NodeZipper<T>> zippers)
-
Field Details
-
commonRoot
-
zippers
-
nodeAdapter
-
-
Constructor Details
-
NodeMultiZipper
-
NodeMultiZipper
private NodeMultiZipper(T commonRoot, List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter, Object dummy)
-
-
Method Details
-
newNodeMultiZipperTrusted
public static <T> NodeMultiZipper<T> newNodeMultiZipperTrusted(T commonRoot, List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter) -
toRootNode
- Returns:
- can be null if the root node is marked as deleted
-
getCommonRoot
-
getZippers
-
size
public int size() -
getZipperForNode
-
withReplacedZippers
-
withNewZipper
-
withReplacedZipper
-
withReplacedZipperForNode
-
getDeepestZippers
-
moveUp
-
zipperWithSameParent
private Map<T, com.google.common.collect.ImmutableList<NodeZipper<T>>> zipperWithSameParent(List<NodeZipper<T>> zippers)
-