Package org.restlet.engine.util
Class CaseInsensitiveHashSet
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<String>,Collection<String>,Set<String>
Set implementation that is case insensitive.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCaseInsensitiveHashSet(Collection<? extends String> source) Constructor initializing the set with the given collection. -
Method Summary
Methods inherited from class java.util.HashSet
clear, clone, isEmpty, iterator, remove, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
CaseInsensitiveHashSet
Constructor initializing the set with the given collection.- Parameters:
source- The source collection to use for initialization.
-
-
Method Details
-
add
-
contains
Verify containment by ignoring case. -
contains
-