Class AutoBeanUtils
java.lang.Object
com.google.web.bindery.autobean.shared.AutoBeanUtils
Utility methods for working with AutoBeans.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleandeepEquals(AutoBean<?> a, AutoBean<?> b) Compare two graphs of AutoBeans based on values.Returns a map of properties that differ (viaObject.equals(Object)) between two AutoBeans.getAllProperties(AutoBean<?> bean) Returns a map that is a copy of the properties contained in an AutoBean.static <T,U extends T>
AutoBean<T> getAutoBean(U delegate) Return the single AutoBean wrapper that is observing the delegate object ornullif the parameter isnullor not wrapped by an AutoBean.(package private) static booleansameOrEquals(Object value, Object otherValue, Map<com.google.web.bindery.autobean.shared.AutoBeanUtils.PendingComparison, com.google.web.bindery.autobean.shared.AutoBeanUtils.Comparison> pending) Compare two AutoBeans, this method has the type fan-out.
-
Method Details
-
getAutoBean
Return the single AutoBean wrapper that is observing the delegate object ornullif the parameter isnullor not wrapped by an AutoBean.- Parameters:
delegate- a delegate object, ornull- Returns:
- the
AutoBeanwrapper for the delegate, ornull
-
sameOrEquals
static boolean sameOrEquals(Object value, Object otherValue, Map<com.google.web.bindery.autobean.shared.AutoBeanUtils.PendingComparison, com.google.web.bindery.autobean.shared.AutoBeanUtils.Comparison> pending) Compare two AutoBeans, this method has the type fan-out.