org.restlet.engine.util
Class CaseInsensitiveHashSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<java.lang.String>
org.restlet.engine.util.CaseInsensitiveHashSet
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.String>, java.util.Collection<java.lang.String>, java.util.Set<java.lang.String>
public class CaseInsensitiveHashSet
- extends java.util.HashSet<java.lang.String>
Set implementation that is case insensitive.
- See Also:
- Serialized Form
Constructor Summary |
CaseInsensitiveHashSet(java.util.Collection<? extends java.lang.String> source)
Constructor initializing the set with the given collection. |
Method Summary |
boolean |
add(java.lang.String element)
|
boolean |
contains(java.lang.String element)
Verify containment by ignoring case. |
Methods inherited from class java.util.HashSet |
clear, clone, contains, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
CaseInsensitiveHashSet
public CaseInsensitiveHashSet(java.util.Collection<? extends java.lang.String> source)
- Constructor initializing the set with the given collection.
- Parameters:
source
- The source collection to use for initialization.
add
public boolean add(java.lang.String element)
- Specified by:
add
in interface java.util.Collection<java.lang.String>
- Specified by:
add
in interface java.util.Set<java.lang.String>
- Overrides:
add
in class java.util.HashSet<java.lang.String>
contains
public boolean contains(java.lang.String element)
- Verify containment by ignoring case.
Copyright © 2005-2013 Restlet.