@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.
|
OMap |
getV1()
Returns the differences in the first bean.
|
OMap |
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 OMap getV1()
public OMap getV2()
Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.