private void setState ( TYPE_1 state ) { this . state = state ; for ( TYPE_2 VAR_1 : VAR_2 ) { VAR_1 . METHOD_1 ( state ) ; } }
private void setState ( TYPE_1 state ) { if ( state != ( this . state ) ) { this . state = state ; for ( TYPE_2 VAR_1 : VAR_2 ) { VAR_1 . METHOD_1 ( state ) ; } } }