Package io.github.connellite.collections
Class LinkedCaseInsensitiveSet
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<String>,Collection<String>,Set<String>
public class LinkedCaseInsensitiveSet
extends AbstractSet<String>
implements Set<String>, Cloneable, Serializable
Set of String elements compared case-insensitively for contains / add /
remove, backed by LinkedCaseInsensitiveMap. Iteration order follows insertion order
of canonical keys.
Allows null like LinkedHashSet. Default case folding uses Locale.ROOT.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLinkedCaseInsensitiveSet(int initialCapacity) LinkedCaseInsensitiveSet(int initialCapacity, float loadFactor) LinkedCaseInsensitiveSet(int initialCapacity, float loadFactor, Locale locale) LinkedCaseInsensitiveSet(int initialCapacity, Locale locale) LinkedCaseInsensitiveSet(Collection<? extends String> c) LinkedCaseInsensitiveSet(Collection<? extends String> c, Locale locale) LinkedCaseInsensitiveSet(Locale locale) -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
LinkedCaseInsensitiveSet
public LinkedCaseInsensitiveSet() -
LinkedCaseInsensitiveSet
public LinkedCaseInsensitiveSet(int initialCapacity) -
LinkedCaseInsensitiveSet
public LinkedCaseInsensitiveSet(int initialCapacity, float loadFactor) -
LinkedCaseInsensitiveSet
-
LinkedCaseInsensitiveSet
-
LinkedCaseInsensitiveSet
-
LinkedCaseInsensitiveSet
-
LinkedCaseInsensitiveSet
-
-
Method Details
-
getLocale
-
size
public int size()- Specified by:
sizein interfaceCollection<String>- Specified by:
sizein interfaceSet<String>- Specified by:
sizein classAbstractCollection<String>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<String>- Specified by:
isEmptyin interfaceSet<String>- Overrides:
isEmptyin classAbstractCollection<String>
-
contains
- Specified by:
containsin interfaceCollection<String>- Specified by:
containsin interfaceSet<String>- Overrides:
containsin classAbstractCollection<String>
-
add
- Specified by:
addin interfaceCollection<String>- Specified by:
addin interfaceSet<String>- Overrides:
addin classAbstractCollection<String>
-
remove
- Specified by:
removein interfaceCollection<String>- Specified by:
removein interfaceSet<String>- Overrides:
removein classAbstractCollection<String>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<String>- Specified by:
clearin interfaceSet<String>- Overrides:
clearin classAbstractCollection<String>
-
iterator
-
clone
-