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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(@NotNull Collection<? extends N> c) void
clear()
boolean
boolean
containsAll
(@NotNull Collection<?> c) empty()
boolean
isEmpty()
iterator()
of
(N... names) TODO maybe we should return immutableNameSet
here.boolean
boolean
removeAll
(@NotNull Collection<?> c) boolean
retainAll
(@NotNull Collection<?> c) int
size()
@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, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
Constructor Details
-
NameSet
public NameSet() -
NameSet
-
-
Method Details
-
empty
-
of
TODO maybe we should return immutableNameSet
here. -
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:
containsAll
in interfaceCollection<N extends QName>
- Specified by:
containsAll
in interfaceSet<N extends QName>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
toString
-