Package com.evolveum.midpoint.prism.path
Class PathSet
- java.lang.Object
-
- com.evolveum.midpoint.prism.path.PathSet
-
@Experimental public class PathSet extends Object implements Set<ItemPath>
A "safe" set ofItemPath- i.e. the one where (e.g.) presence is checked usingItemPath.equivalent(ItemPath), notObject.equals(Object)method. Slower than standard set! Operations are evaluated in `O(n)` time.
-
-
Constructor Summary
Constructors Constructor Description PathSet()PathSet(@NotNull Collection<ItemPath> initialContent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(@NotNull ItemPath itemPath)booleanaddAll(@NotNull Collection<? extends ItemPath> c)voidclear()booleancontains(Object o)booleancontainsAll(@NotNull Collection<?> c)static PathSetempty()booleanisEmpty()@NotNull Iterator<ItemPath>iterator()static @NotNull PathSetof(ItemPath... paths)TODO maybe we should return immutablePathSethere.booleanremove(Object o)booleanremoveAll(@NotNull Collection<?> c)booleanretainAll(@NotNull Collection<?> c)intsize()@NotNull Object[]toArray()<T> @NotNull T[]toArray(@NotNull T[] a)StringtoString()-
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 Detail
-
PathSet
public PathSet()
-
PathSet
public PathSet(@NotNull @NotNull Collection<ItemPath> initialContent)
-
-
Method Detail
-
empty
public static PathSet empty()
-
of
@NotNull public static @NotNull PathSet of(ItemPath... paths)
TODO maybe we should return immutablePathSethere.
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
@NotNull public @NotNull Object[] toArray()
-
toArray
@NotNull public <T> @NotNull T[] toArray(@NotNull @NotNull T[] a)
-
add
public boolean add(@NotNull @NotNull ItemPath itemPath)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(@NotNull @NotNull Collection<?> c)- Specified by:
containsAllin interfaceCollection<ItemPath>- Specified by:
containsAllin interfaceSet<ItemPath>
-
addAll
public boolean addAll(@NotNull @NotNull Collection<? extends ItemPath> c)
-
retainAll
public boolean retainAll(@NotNull @NotNull Collection<?> c)
-
removeAll
public boolean removeAll(@NotNull @NotNull Collection<?> c)
-
clear
public void clear()
-
-