From 1981c7ab29ef2a266504597f48858a7d517fe37c Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Mon, 18 Jun 2007 07:39:49 +0000 Subject: [PATCH] adding utility function clear() to ModifiableSolrParams git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@548247 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/solr/common/params/ModifiableSolrParams.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/java/org/apache/solr/common/params/ModifiableSolrParams.java b/src/java/org/apache/solr/common/params/ModifiableSolrParams.java index 0ced1e33847..402b8665af9 100644 --- a/src/java/org/apache/solr/common/params/ModifiableSolrParams.java +++ b/src/java/org/apache/solr/common/params/ModifiableSolrParams.java @@ -109,6 +109,12 @@ public class ModifiableSolrParams extends SolrParams return vals.remove( name ); } + /** clear all parameters */ + public void clear() + { + vals.clear(); + } + /** * remove the given value for the given name *