You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2005/10/19 16:21:51 UTC

svn commit: r326570 - /directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java

Author: ersiner
Date: Wed Oct 19 07:21:43 2005
New Revision: 326570

URL: http://svn.apache.org/viewcvs?rev=326570&view=rev
Log:
Added missing license text and some javadoc.

Modified:
    directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java

Modified: directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java?rev=326570&r1=326569&r2=326570&view=diff
==============================================================================
--- directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java (original)
+++ directory/shared/ldap/trunk/common/src/java/org/apache/ldap/common/util/NoDuplicateKeysMap.java Wed Oct 19 07:21:43 2005
@@ -1,9 +1,34 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+
 package org.apache.ldap.common.util;
 
 
 import java.util.HashMap;
 
 
+/**
+ * A Map implementation derived from HashMap that only overrides a single method
+ * put() in order to prevent duplicate keyed entries to be added.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
 public class NoDuplicateKeysMap extends HashMap
 {
     /**