@Bean(bpi="v1,v2") public class BeanDiff extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BeanDiff.Builder<T>
Builder class.
|
| Constructor and Description |
|---|
BeanDiff(BeanContext bc,
T first,
T second,
Set<String> include,
Set<String> exclude)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> BeanDiff.Builder<T> |
create(T first,
T second)
Create a new builder for this class.
|
ObjectMap |
getV1()
Returns the differences in the first bean.
|
ObjectMap |
getV2()
Returns the differences in the second bean.
|
boolean |
hasDiffs()
Returns
|
String |
toString() |
public BeanDiff(BeanContext bc, T first, T second, Set<String> include, Set<String> exclude)
bc - The bean context to use for comparing beans.first - The first bean to compare.second - The second bean to compare.include - Optional properties to include in the comparison.
exclude - Optional properties to exclude in the comparison.
public static <T> BeanDiff.Builder<T> create(T first, T second)
first - The first bean to compare.second - The second bean to compare.public boolean hasDiffs()
public ObjectMap getV1()
public ObjectMap getV2()
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.