public class NodeStateCopier
extends java.lang.Object
source
and target
is equivalent to the single
execution of a naive equals implementation.
includePaths
,
excludePaths
and mergePaths
.
Modifier and Type | Class and Description |
---|---|
static class |
NodeStateCopier.Builder
The NodeStateCopier.Builder allows configuring a NodeState copy operation with
includePaths , excludePaths and mergePaths . |
Modifier and Type | Method and Description |
---|---|
static NodeStateCopier.Builder |
builder()
Create a NodeStateCopier.Builder.
|
static boolean |
copyNodeStore(@NotNull NodeStore source,
@NotNull NodeStore target)
Shorthand method to copy one NodeStore to another.
|
static boolean |
copyProperties(NodeState source,
NodeBuilder target)
Copies all changed properties from the source NodeState to the target
NodeBuilder instance.
|
public static NodeStateCopier.Builder builder()
NodeStateCopier.Builder
public static boolean copyNodeStore(@NotNull @NotNull NodeStore source, @NotNull @NotNull NodeStore target) throws CommitFailedException
source
- NodeStore to copy from.target
- NodeStore to copy to.CommitFailedException
- if the operation failsNodeStateCopier.Builder.copy(NodeStore, NodeStore)
public static boolean copyProperties(NodeState source, NodeBuilder target)
source
- The NodeState to copy from.target
- The NodeBuilder to copy to.Copyright © 2010 - 2020 Adobe. All Rights Reserved