public static void remove ( List < AvPair > pairs , int type ) { Iterator < AvPair > it = pairs . iterator ( ) ; while ( it . hasNext ( ) ) { AvPair p = it . next ( ) ; if ( p . getType ( ) == type ) { it . remove ( ) ; } } }
Remove all occurances of the given type