public class DiffUtil extends Object
Constructor and Description |
---|
DiffUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
compareSchema(DiffContext ctx,
org.everit.json.schema.Schema original,
org.everit.json.schema.Schema updated,
DiffType addedType,
DiffType removedType,
DiffType bothType,
DiffType backwardNotForwardType,
DiffType forwardNotBackwardType,
DiffType none) |
static boolean |
diffAddedRemoved(DiffContext ctx,
Object original,
Object updated,
DiffType addedType,
DiffType removedType)
added/removed
|
static void |
diffBooleanTransition(DiffContext ctx,
Boolean original,
Boolean updated,
Boolean defaultValue,
DiffType changeFalseToTrue,
DiffType changeTrueToFalse,
DiffType unchanged) |
static boolean |
diffInteger(DiffContext ctx,
Integer original,
Integer updated,
DiffType addedType,
DiffType removedType,
DiffType increasedType,
DiffType decreasedType)
added/removed/increased/decreased
|
static boolean |
diffNumber(DiffContext ctx,
Number original,
Number updated,
DiffType addedType,
DiffType removedType,
DiffType increasedType,
DiffType decreasedType)
added/removed/increased/decreased
|
static void |
diffNumberOriginalMultipleOfUpdated(DiffContext ctx,
Number original,
Number updated,
DiffType multipleOfType,
DiffType notMultipleOfType) |
static void |
diffObject(DiffContext ctx,
Object original,
Object updated,
DiffType addedType,
DiffType removedType,
DiffType changedType)
added/removed/changed (using equals)
|
static void |
diffObjectDefault(DiffContext ctx,
Object original,
Object updated,
Object defaultValue,
DiffType addedType,
DiffType removedType,
DiffType changedType)
added/removed/changed (using equals), with a default value specified
|
static boolean |
diffObjectIdentity(DiffContext ctx,
Object original,
Object updated,
DiffType addedType,
DiffType removedType,
DiffType changedType)
added/removed/changed (using ==)
|
static <T> void |
diffSetChanged(DiffContext ctx,
Set<T> original,
Set<T> updated,
DiffType addedType,
DiffType removedType,
DiffType changedType,
DiffType addedMemberType,
DiffType removedMemberType) |
static boolean |
diffSubschemaAddedRemoved(DiffContext ctx,
Object original,
Object updated,
DiffType addedType,
DiffType removedType) |
static <T> T |
getExceptionally(DiffContext ctx,
Supplier<T> getter)
Use getter and return null if there is an exception.
|
public static boolean diffAddedRemoved(DiffContext ctx, Object original, Object updated, DiffType addedType, DiffType removedType)
public static <T> void diffSetChanged(DiffContext ctx, Set<T> original, Set<T> updated, DiffType addedType, DiffType removedType, DiffType changedType, DiffType addedMemberType, DiffType removedMemberType)
public static boolean diffSubschemaAddedRemoved(DiffContext ctx, Object original, Object updated, DiffType addedType, DiffType removedType)
public static boolean diffInteger(DiffContext ctx, Integer original, Integer updated, DiffType addedType, DiffType removedType, DiffType increasedType, DiffType decreasedType)
public static boolean diffNumber(DiffContext ctx, Number original, Number updated, DiffType addedType, DiffType removedType, DiffType increasedType, DiffType decreasedType)
public static void diffNumberOriginalMultipleOfUpdated(DiffContext ctx, Number original, Number updated, DiffType multipleOfType, DiffType notMultipleOfType)
public static void diffBooleanTransition(DiffContext ctx, Boolean original, Boolean updated, Boolean defaultValue, DiffType changeFalseToTrue, DiffType changeTrueToFalse, DiffType unchanged)
public static void diffObject(DiffContext ctx, Object original, Object updated, DiffType addedType, DiffType removedType, DiffType changedType)
public static void diffObjectDefault(DiffContext ctx, Object original, Object updated, Object defaultValue, DiffType addedType, DiffType removedType, DiffType changedType)
public static boolean diffObjectIdentity(DiffContext ctx, Object original, Object updated, DiffType addedType, DiffType removedType, DiffType changedType)
public static void compareSchema(DiffContext ctx, org.everit.json.schema.Schema original, org.everit.json.schema.Schema updated, DiffType addedType, DiffType removedType, DiffType bothType, DiffType backwardNotForwardType, DiffType forwardNotBackwardType, DiffType none)
public static <T> T getExceptionally(DiffContext ctx, Supplier<T> getter)
Copyright © 2020 Red Hat. All rights reserved.