question: void clear ( ) { if ( ! objects . isEmpty ( ) ) { logger . debug ( "Game objects not empty!" ) ; final Iterator < IEntity > it = iterator ( ) ; while ( it . hasNext ( ) ) { final IEntity entity = it . next ( ) ; logger . debug ( "Residual entity: " + entity ) ; entity . release ( ) ; } objects . clear ( ) ; } }
target:  Removes all the object entities.