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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveSet()
CaseInsensitiveSet(int initialCapacity)
CaseInsensitiveSet(Collection<? extends T> c)
CaseInsensitiveSet(T[] stringArray)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(T o)
void
clear()
boolean
contains(Object o)
boolean
isEmpty()
Iterator<T>
iterator()
boolean
remove(Object o)
int
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
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
-
-
-
-
Constructor Detail
-
CaseInsensitiveSet
public CaseInsensitiveSet()
-
CaseInsensitiveSet
public CaseInsensitiveSet(Collection<? extends T> c)
-
CaseInsensitiveSet
public CaseInsensitiveSet(T[] stringArray)
-
CaseInsensitiveSet
public CaseInsensitiveSet(int initialCapacity)
-
-
Method Detail
-
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
public boolean contains(Object o)
- Specified by:
contains
in interfaceCollection<T extends CharSequence>
- Specified by:
contains
in interfaceSet<T extends CharSequence>
- Overrides:
contains
in classAbstractCollection<T extends CharSequence>
-
iterator
public Iterator<T> 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
public boolean add(T o)
- Specified by:
add
in interfaceCollection<T extends CharSequence>
- Specified by:
add
in interfaceSet<T extends CharSequence>
- Overrides:
add
in classAbstractCollection<T extends CharSequence>
-
remove
public boolean remove(Object o)
- 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>
-
-