/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: CaseInsensitiveHashMap.java,v 1.4 2009/01/13 18:08:54 leiming Exp $
*
* Portions Copyrighted 2011-2015 ForgeRock AS.
*/
/**
* A case insensitive hash map with case preservation. If key is a String, a
* case insensitive hash code is used for hashing but original case of the key
* is preserved.
*/
public CaseInsensitiveHashMap() {
super();
}
super(initialCapacity);
}
super(initialCapacity, loadFactor);
}
putAll(t);
}
boolean retval;
} else {
}
return retval;
}
V retval;
} else {
}
return retval;
}
/**
* @return a <code>Set</Code> of keys.
*/
return new CaseInsensitiveHashSet<>(super.keySet());
}
/**
* Returns set view of mappings in this map
*
* @return a <code>Set</Code> of map entries
*/
// keys are CaseInsensitiveKey's,
// hence needs to switched to String
}
return set;
}
V retval;
} else {
}
return retval;
}
return;
}
}
}
V retval;
} else {
}
return retval;
}
}
// Since key would CaseInsensitiveKey,
// need to convert it to String
}
}
}
}
public int hashCode() {
}
}
}