private boolean willAttributeModifyModel ( String attributeName , Object newValue ) { Object currentValue = get ( attributeName ) ; return currentValue != null ? ! currentValue . equals ( newValue ) : newValue != null ; }
Verifies if the passed value for attributeName will set this instance to modified state .