question: public void removeActionsFor ( int entityId ) { Vector < EntityAction > toKeep = new Vector < EntityAction > ( actions . size ( ) ) ; for ( EntityAction ea : actions ) { if ( ea . getEntityId ( ) != entityId ) { toKeep . addElement ( ea ) ; } } actions = toKeep ; }
target:  Removes all actions by the specified entity