public class UpdateUtils extends Object
| Constructor and Description |
|---|
UpdateUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyChanges(@NotNull Document doc,
@NotNull UpdateOp update)
Apply the changes to the in-memory document.
|
static void |
assertUnconditional(@NotNull UpdateOp up)
Ensures that the given
UpdateOp is unconditional |
static boolean |
checkConditions(@NotNull Document doc,
@NotNull Map<UpdateOp.Key,UpdateOp.Condition> conditions) |
public static void applyChanges(@NotNull
@NotNull Document doc,
@NotNull
@NotNull UpdateOp update)
doc - the target document.update - the changes to apply.public static boolean checkConditions(@NotNull
@NotNull Document doc,
@NotNull
@NotNull Map<UpdateOp.Key,UpdateOp.Condition> conditions)
public static void assertUnconditional(@NotNull
@NotNull UpdateOp up)
UpdateOp is unconditionalup - the update operationIllegalArgumentException - when the operations is conditionalCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.