Package gw.util
Class CaseInsensitiveSet<T extends CharSequence>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<T>
gw.util.CaseInsensitiveSet<T>
- All Implemented Interfaces:
Serializable
,Iterable<T>
,Collection<T>
,Set<T>
public class CaseInsensitiveSet<T extends CharSequence>
extends AbstractSet<T>
implements Set<T>, Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCaseInsensitiveSet
(int initialCapacity) CaseInsensitiveSet
(Collection<? extends T> c) CaseInsensitiveSet
(T[] stringArray) -
Method Summary
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, spliterator, toArray, toArray
-
Field Details
-
_map
-
MARKER
-
-
Constructor Details
-
CaseInsensitiveSet
public CaseInsensitiveSet() -
CaseInsensitiveSet
-
CaseInsensitiveSet
-
CaseInsensitiveSet
public CaseInsensitiveSet(int initialCapacity)
-
-
Method Details
-
size
public int size()- Specified by:
size
in interfaceCollection<T extends CharSequence>
- Specified by:
size
in interfaceSet<T extends CharSequence>
- Specified by:
size
in classAbstractCollection<T extends CharSequence>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T extends CharSequence>
- Specified by:
isEmpty
in interfaceSet<T extends CharSequence>
- Overrides:
isEmpty
in classAbstractCollection<T extends CharSequence>
-
contains
- Specified by:
contains
in interfaceCollection<T extends CharSequence>
- Specified by:
contains
in interfaceSet<T extends CharSequence>
- Overrides:
contains
in classAbstractCollection<T extends CharSequence>
-
iterator
- Specified by:
iterator
in interfaceCollection<T extends CharSequence>
- Specified by:
iterator
in interfaceIterable<T extends CharSequence>
- Specified by:
iterator
in interfaceSet<T extends CharSequence>
- Specified by:
iterator
in classAbstractCollection<T extends CharSequence>
-
add
- Specified by:
add
in interfaceCollection<T extends CharSequence>
- Specified by:
add
in interfaceSet<T extends CharSequence>
- Overrides:
add
in classAbstractCollection<T extends CharSequence>
-
remove
- Specified by:
remove
in interfaceCollection<T extends CharSequence>
- Specified by:
remove
in interfaceSet<T extends CharSequence>
- Overrides:
remove
in classAbstractCollection<T extends CharSequence>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T extends CharSequence>
- Specified by:
clear
in interfaceSet<T extends CharSequence>
- Overrides:
clear
in classAbstractCollection<T extends CharSequence>
-