@@ -0,0 +1,1847 @@
+/**%0A * Copyright (C) 2015 The Gravitee team (http://gravitee.io)%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *         http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage io.gravitee.common.util;%0A%0Aimport java.util.Collection;%0Aimport java.util.LinkedHashSet;%0A%0A/**%0A * Set implementation that is case insensitive.%0A *%0A * @author David BRASSELY (david.brassely at graviteesource.com)%0A * @author GraviteeSource Team%0A */%0Apublic class LinkedCaseInsensitiveSet extends LinkedHashSet%3CString%3E %7B%0A%0A    private static final long serialVersionUID = 1L;%0A%0A    /**%0A     * Constructs a new, empty linked hash set with the default initial%0A     * capacity (16) and load factor (0.75).%0A     */%0A    public LinkedCaseInsensitiveSet() %7B%0A        super();%0A    %7D%0A%0A    /**%0A     * Constructor initializing the set with the given collection.%0A     *%0A     * @param source The source collection to use for initialization.%0A     */%0A    public LinkedCaseInsensitiveSet(Collection%3C? extends String%3E source) %7B%0A        super(source);%0A    %7D%0A%0A    @Override%0A    public boolean add(String element) %7B%0A        return super.add(element.toLowerCase());%0A    %7D%0A%0A    /**%0A     * Verify containment by ignoring case.%0A     */%0A    public boolean contains(String element) %7B%0A        return super.contains(element.toLowerCase());%0A    %7D%0A%0A    @Override%0A    public boolean contains(Object o) %7B%0A        return contains(o.toString());%0A    %7D%0A%7D

Add insensitive hash set