Package com.evolveum.midpoint.prism.path
Class NameSet<N extends QName>
java.lang.Object
com.evolveum.midpoint.prism.path.NameSet<N>
- All Implemented Interfaces:
Iterable<N>,Collection<N>,Set<N>
A "safe" set of
QName - i.e. the one where (e.g.) presence is checked using QNameUtil.match(QName, QName),
not Object.equals(Object) method.
Slower than standard set! Operations are evaluated in `O(n)` time.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(@NotNull Collection<? extends N> c) voidclear()booleanbooleancontainsAll(@NotNull Collection<?> c) empty()booleanisEmpty()iterator()of(N... names) TODO maybe we should return immutableNameSethere.booleanbooleanremoveAll(@NotNull Collection<?> c) booleanretainAll(@NotNull Collection<?> c) intsize()@NotNull Object[]toArray()<T> @NotNull T[]toArray(@NotNull T[] a) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
equals, hashCode, spliterator
-
Constructor Details
-
NameSet
public NameSet() -
NameSet
-
-
Method Details
-
empty
-
of
TODO maybe we should return immutableNameSethere. -
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
@NotNull public <T> @NotNull T[] toArray(@NotNull @NotNull T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<N extends QName>- Specified by:
containsAllin interfaceSet<N extends QName>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
toString
-