@PublicApi public class NodeMultiZipper<T> extends java.lang.Object
Constructor and Description |
---|
NodeMultiZipper(T commonRoot,
java.util.List<NodeZipper<T>> zippers,
NodeAdapter<T> nodeAdapter) |
Modifier and Type | Method and 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) |
public NodeMultiZipper(T commonRoot, java.util.List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter)
public static <T> NodeMultiZipper<T> newNodeMultiZipperTrusted(T commonRoot, java.util.List<NodeZipper<T>> zippers, NodeAdapter<T> nodeAdapter)
public T toRootNode()
public T getCommonRoot()
public java.util.List<NodeZipper<T>> getZippers()
public int size()
public NodeZipper<T> getZipperForNode(T node)
public NodeMultiZipper<T> withReplacedZippers(java.util.List<NodeZipper<T>> zippers)
public NodeMultiZipper<T> withNewZipper(NodeZipper<T> newZipper)
public NodeMultiZipper<T> withReplacedZipper(NodeZipper<T> oldZipper, NodeZipper<T> newZipper)
public NodeMultiZipper<T> withReplacedZipperForNode(T currentNode, T newNode)