#### description removes given behavior from given component if it was added before #### usage if behavior was added to component : `` ` java mycomponent.add mybehavior ; / / ... behaviors.remove mycomponent , mybehavior ; / / = true `` ` if behavior was n't added to component before : `` ` java behaviors.remove mycomponent , mybehavior ; / / = false `` ` concode_field_sep PlaceHolder placeHolder concode_field_sep boolean contains concode_elem_sep boolean contains
boolean function ( final Component arg0 , final Behavior arg1 ) { Args . notNull ( arg0 , "srini_string" ) ; for ( Behavior loc0 : arg0 . getBehaviors ( ) ) { if ( loc0 . equals ( arg1 ) ) { arg0 . remove ( loc0 ) ; return true ; } } return false ; }