Class IdentifierSet
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<String>
,Collection<String>
,Set<String>
This class behaves like a HashSet with lower-case String values. All element arguments are
lower-cased before further processing.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIdentifierSet
(int initialCapacity) IdentifierSet
(int initialCapacity, float loadFactor) IdentifierSet
(Collection<? extends String> c) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends String> strings) boolean
boolean
containsAll
(Collection<?> collection) static IdentifierSet
difference
(Collection<String> set1, Collection<String> set2) differenceWithOriginalCasing
(Collection<String> set1, Collection<String> set2) static IdentifierSet
intersection
(Collection<String> set1, Collection<String> set2) boolean
boolean
removeAll
(Collection<?> collection) boolean
retainAll
(Collection<?> collection) Methods inherited from class java.util.HashSet
clear, clone, isEmpty, iterator, newHashSet, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode
Methods inherited from class java.util.AbstractCollection
toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
IdentifierSet
public IdentifierSet() -
IdentifierSet
-
IdentifierSet
public IdentifierSet(int initialCapacity, float loadFactor) -
IdentifierSet
public IdentifierSet(int initialCapacity)
-
-
Method Details
-
removeAll
- Specified by:
removeAll
in interfaceCollection<String>
- Specified by:
removeAll
in interfaceSet<String>
- Overrides:
removeAll
in classAbstractSet<String>
-
contains
-
add
-
remove
-
containsAll
- Specified by:
containsAll
in interfaceCollection<String>
- Specified by:
containsAll
in interfaceSet<String>
- Overrides:
containsAll
in classAbstractCollection<String>
-
addAll
- Specified by:
addAll
in interfaceCollection<String>
- Specified by:
addAll
in interfaceSet<String>
- Overrides:
addAll
in classAbstractCollection<String>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<String>
- Specified by:
retainAll
in interfaceSet<String>
- Overrides:
retainAll
in classAbstractCollection<String>
-
difference
-
differenceWithOriginalCasing
public static Set<String> differenceWithOriginalCasing(Collection<String> set1, Collection<String> set2) -
intersection
-