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 booleanadd(T o)voidclear()booleancontains(Object o)booleanisEmpty()Iterator<T>iterator()booleanremove(Object o)intsize()-
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:
sizein interfaceCollection<T extends CharSequence>- Specified by:
sizein interfaceSet<T extends CharSequence>- Specified by:
sizein classAbstractCollection<T extends CharSequence>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<T extends CharSequence>- Specified by:
isEmptyin interfaceSet<T extends CharSequence>- Overrides:
isEmptyin classAbstractCollection<T extends CharSequence>
-
contains
public boolean contains(Object o)
- Specified by:
containsin interfaceCollection<T extends CharSequence>- Specified by:
containsin interfaceSet<T extends CharSequence>- Overrides:
containsin classAbstractCollection<T extends CharSequence>
-
iterator
public Iterator<T> iterator()
- Specified by:
iteratorin interfaceCollection<T extends CharSequence>- Specified by:
iteratorin interfaceIterable<T extends CharSequence>- Specified by:
iteratorin interfaceSet<T extends CharSequence>- Specified by:
iteratorin classAbstractCollection<T extends CharSequence>
-
add
public boolean add(T o)
- Specified by:
addin interfaceCollection<T extends CharSequence>- Specified by:
addin interfaceSet<T extends CharSequence>- Overrides:
addin classAbstractCollection<T extends CharSequence>
-
remove
public boolean remove(Object o)
- Specified by:
removein interfaceCollection<T extends CharSequence>- Specified by:
removein interfaceSet<T extends CharSequence>- Overrides:
removein classAbstractCollection<T extends CharSequence>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<T extends CharSequence>- Specified by:
clearin interfaceSet<T extends CharSequence>- Overrides:
clearin classAbstractCollection<T extends CharSequence>
-
-