Package org.apache.juneau.utils
Class BeanDiff
java.lang.Object
org.apache.juneau.utils.BeanDiff
Utility class for comparing two versions of a POJO.
 
   
See Also:
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> BeanDiff.Builder<T>create(T first, T second) Create a new builder for this class.getV1()Returns the differences in the first bean.getV2()Returns the differences in the second bean.booleanhasDiffs()Returnstrue if the beans had differences.toString()
- 
Constructor Details- 
BeanDiffConstructor.- Type Parameters:
- T- The bean types.
- Parameters:
- 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.
 If- null , all properties are included.
- exclude- Optional properties to exclude in the comparison.
 If- null , no properties are excluded.
 
 
- 
- 
Method Details- 
createCreate a new builder for this class.- Type Parameters:
- T- The bean types.
- Parameters:
- first- The first bean to compare.
- second- The second bean to compare.
- Returns:
- A new builder.
 
- 
hasDiffsReturnstrue if the beans had differences.- Returns:
- true if the beans had differences.
 
- 
getV1Returns the differences in the first bean.- Returns:
- The differences in the first bean.
 
- 
getV2Returns the differences in the second bean.- Returns:
- The differences in the second bean.
 
- 
toString
 
-