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;
}

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 ; }
removes all actions by the specified entity
