public void compress ( ) { for ( Iterator < int [ ] > itr = values ( ) . iterator ( ) ; itr . hasNext ( ) ; ) { if ( itr . next ( ) [ 0 ] == 0 ) { itr . remove ( ) ; } } }
Compress the count map - remove entries for which the value is 0 .