Update of /var/cvs/src/org/mmbase/util/functions In directory james.mmbase.org:/tmp/cvs-serv19713/util/functions
Modified Files: Tag: MMBase-1_8 Parameters.java Log Message: ported generic 'url' function from HEAD See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util/functions Index: Parameters.java =================================================================== RCS file: /var/cvs/src/org/mmbase/util/functions/Parameters.java,v retrieving revision 1.23.2.1 retrieving revision 1.23.2.2 diff -u -b -r1.23.2.1 -r1.23.2.2 --- Parameters.java 18 Oct 2006 10:01:03 -0000 1.23.2.1 +++ Parameters.java 27 Oct 2008 17:00:41 -0000 1.23.2.2 @@ -23,7 +23,7 @@ * * @author Michiel Meeuwissen * @since MMBase-1.7 - * @version $Id: Parameters.java,v 1.23.2.1 2006/10/18 10:01:03 michiel Exp $ + * @version $Id: Parameters.java,v 1.23.2.2 2008/10/27 17:00:41 michiel Exp $ * @see Parameter * @see #Parameters(Parameter[]) */ @@ -317,6 +317,17 @@ return this; } + /** + * @since MMBase-1.8.7 + */ + public Parameters setAll(Parameters params) { + Parameter[] def = params.getDefinition(); + for (int i = 0; i < def.length; i++) { + Parameter param = def[i]; + set(param, params.get(param)); + } + return this; + } public List subList(int fromIndex, int toIndex) { return new Parameters(this, fromIndex, toIndex); } _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs