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 boolean
add(@NotNull ItemPath itemPath)
boolean
addAll(@NotNull Collection<? extends ItemPath> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(@NotNull Collection<?> c)
static PathSet
empty()
boolean
isEmpty()
@NotNull Iterator<ItemPath>
iterator()
static @NotNull PathSet
of(ItemPath... paths)
TODO maybe we should return immutablePathSet
here.boolean
remove(Object o)
boolean
removeAll(@NotNull Collection<?> c)
boolean
retainAll(@NotNull Collection<?> c)
int
size()
@NotNull Object[]
toArray()
<T> @NotNull T[]
toArray(@NotNull T[] a)
String
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 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 immutablePathSet
here.
-
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:
containsAll
in interfaceCollection<ItemPath>
- Specified by:
containsAll
in 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()
-
-