Class CaseInsensitiveHashSet

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<String>
io.github.connellite.collections.CaseInsensitiveHashSet
All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Collection<String>, Set<String>

public class CaseInsensitiveHashSet extends AbstractSet<String> implements Set<String>, Cloneable, Serializable
Set of String elements compared case-insensitively for contains / add / remove. Iteration and the single stored spelling per logical element follow CaseInsensitiveHashMap (last successful add wins for that logical string).

Allows null like HashSet. Default case folding uses Locale.ROOT; pass a Locale constructor to customize (see CaseInsensitiveHashMap).

See Also: