public class Configuration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Configuration.CircularReferenceMatchingMode
Defines how the
CircularReferenceDetector compares object instances. |
static class |
Configuration.PrimitiveDefaultValueMode
Defines how default values of primitive types (int, long, short, byte, char, boolean, float, double) will
be treated.
|
Constructor and Description |
---|
Configuration() |
public Configuration withExceptionListener(ExceptionListener exceptionListener)
exceptionListener
- Handler for recoverable exceptional states.public Configuration withCategory(String category)
public Configuration withoutCategory(String... category)
public Configuration withPropertyPath(PropertyPath propertyPath)
propertyPath
- The property path to include.public Configuration withoutProperty(PropertyPath propertyPath)
propertyPath
- The property path to exclude.public Configuration withCompareToOnlyType(Class<?> type)
public Configuration withEqualsOnlyType(Class<?> type)
public Configuration withEqualsOnlyProperty(PropertyPath propertyPath)
public Configuration withEqualsOnlyValueProviderMethod(PropertyPath propertyPath, String methodName)
public Configuration withEqualsOnlyValueProviderMethod(PropertyPathAndMethod propertyPathEqualsMethod)
public Configuration withEqualsOnlyValueProviderMethod(Class<?> type, String method)
public Configuration withEqualsOnlyValueProviderMethod(ClassAndMethod classAndMethod)
public Configuration withIgnoredNodes()
public Configuration withoutIgnoredNodes()
public Configuration withUntouchedNodes()
public Configuration withoutUntouchedNodes()
public Configuration withCircularNodes()
public Configuration withoutCircularNodes()
public Configuration withChildrenOfAddedNodes()
public Configuration withoutChildrenOfAddedNodes()
public Configuration withChildrenOfRemovedNodes()
public Configuration withoutChildrenOfRemovedNodes()
public Configuration treatPrimitiveDefaultValuesAs(Configuration.PrimitiveDefaultValueMode mode)
public Configuration.PrimitiveDefaultValueMode getPrimitiveDefaultValueMode()
public Configuration.CircularReferenceMatchingMode getCircularReferenceMatchingMode()
public void matchCircularReferencesUsing(Configuration.CircularReferenceMatchingMode circularReferenceMatchingMode)
public boolean isIgnored(Node node)
public boolean isIncluded(Node node)
public boolean isExcluded(Node node)
public boolean isCompareToOnly(Node node)
public boolean isEqualsOnly(Node node)
public boolean hasEqualsOnlyValueProviderMethod(Node node)
public boolean isReturnable(Node node)
public boolean isIntrospectible(Node node)
true
if the object represented by the given node should be compared via
introspection. It must always return false
if isEqualsOnly(de.danielbechler.diff.node.Node)
returns true
.public ExceptionListener getExceptionListener()
Copyright © 2013. All Rights Reserved.