code: public Param[] getParamsAsArray() {
  		Param[] result = new Param[this.params.size()];
  		
  		int i = 0;
  		for (Map.Entry<String, String> entry: this.params.entrySet())
  			result[i++] = new Param(entry.getKey(), entry.getValue());
  		
  		return result;
  	}
docs: Gets the current state of the params as a Param[] array