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 TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends String> strings) booleanbooleancontainsAll(Collection<?> collection) static IdentifierSetdifference(Collection<String> set1, Collection<String> set2) differenceWithOriginalCasing(Collection<String> set1, Collection<String> set2) static IdentifierSetintersection(Collection<String> set1, Collection<String> set2) booleanbooleanremoveAll(Collection<?> collection) booleanretainAll(Collection<?> collection) Methods inherited from class java.util.HashSet
clear, clone, isEmpty, iterator, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSet
equals, hashCodeMethods inherited from class java.util.AbstractCollection
toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
removeAllin interfaceCollection<String>- Specified by:
removeAllin interfaceSet<String>- Overrides:
removeAllin classAbstractSet<String>
-
contains
-
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<String>- Specified by:
containsAllin interfaceSet<String>- Overrides:
containsAllin classAbstractCollection<String>
-
addAll
- Specified by:
addAllin interfaceCollection<String>- Specified by:
addAllin interfaceSet<String>- Overrides:
addAllin classAbstractCollection<String>
-
retainAll
- Specified by:
retainAllin interfaceCollection<String>- Specified by:
retainAllin interfaceSet<String>- Overrides:
retainAllin classAbstractCollection<String>
-
difference
-
differenceWithOriginalCasing
public static Set<String> differenceWithOriginalCasing(Collection<String> set1, Collection<String> set2) -
intersection
-