public Pair<String,String> compareParameter(List<String> oldParameters,List<String> newParameters){
  Iterator<String> paramIter=newParameters.iterator();
  while (paramIter.hasNext()) {
    String param=paramIter.next();
    int index=oldParameters.indexOf(param);
    if (index != -1) {
      paramIter.remove();
      oldParameters.remove(index);
    }
  }
  if (!oldParameters.isEmpty() || !newParameters.isEmpty()) {
    return new Pair<String,String>(Arrays.toString(oldParameters.toArray(new String[oldParameters.size()])),Arrays.toString(newParameters.toArray(new String[newParameters.size()])));
  }
  return null;
}

public Pair < String , String > compareParameter ( List < String > oldParameters , List < String > newParameters ) { Iterator < String > paramIter = newParameters . iterator ( ) ; while ( paramIter . hasNext ( ) ) { String param = paramIter . next ( ) ; int index = oldParameters . indexOf ( param ) ; if ( index != - 1 ) { paramIter . remove ( ) ; oldParameters . remove ( index ) ; } } if ( ! oldParameters . isEmpty ( ) || ! newParameters . isEmpty ( ) ) { return new Pair < String , String > ( Arrays . toString ( oldParameters . toArray ( new String [ oldParameters . size ( ) ] ) ) , Arrays . toString ( newParameters . toArray ( new String [ newParameters . size ( ) ] ) ) ) ; } return null ; }
compares two parameter list in old resource and new resource
