Restlet Framework 2.2.1
Android

org.restlet.engine.util
Class CaseInsensitiveHashSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<java.lang.String>
              extended by 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
 

Constructor Detail

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.
Method Detail

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.


Restlet Framework 2.2.1
Android

Copyright © 2005-2014 Restlet.