Package com.evolveum.midpoint.prism.path
Class PathSet
java.lang.Object
com.evolveum.midpoint.prism.AbstractFreezable
com.evolveum.midpoint.prism.path.PathSet
- All Implemented Interfaces:
- Freezable,- Serializable,- Iterable<ItemPath>,- Collection<ItemPath>,- Set<ItemPath>
A "safe" set of 
ItemPath - i.e. the one where (e.g.) presence is checked using ItemPath.equivalent(ItemPath),
 not Object.equals(Object) method.
 Slower than standard set! Operations are evaluated in `O(n)` time.- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanaddAll(@NotNull Collection<? extends ItemPath> c) voidclear()booleanbooleancontainsAll(@NotNull Collection<?> c) booleancontainsRelated(@NotNull ItemPath path) Returns `true` it the set (at least partially) covers given item.booleancontainsSubpathOrEquivalent(@NotNull ItemPath path) static PathSetempty()Returns immutable empty path set.@NotNull NameKeyedMap<ItemName,PathSet> factor()Factors the path set on the first segment of the paths.booleanisEmpty()iterator()static @NotNull PathSetReturns immutablePathSet.protected void@NotNull PathSetStrips the prefix from a set of paths.booleanbooleanremoveAll(@NotNull Collection<?> c) booleanretainAll(@NotNull Collection<?> c) intsize()@NotNull Object[]toArray()<T> @NotNull T[]toArray(@NotNull T[] a) toString()Methods inherited from class com.evolveum.midpoint.prism.AbstractFreezablefreeze, freeze, freezeAll, freezeNullableList, isImmutable, isMutableMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface com.evolveum.midpoint.prism.FreezablecheckImmutable, checkMutableMethods inherited from interface java.util.Setequals, hashCode, spliterator
- 
Constructor Details- 
PathSetpublic PathSet()
- 
PathSet
 
- 
- 
Method Details- 
emptyReturns immutable empty path set.
- 
of
- 
sizepublic int size()
- 
isEmptypublic boolean isEmpty()
- 
contains
- 
containsSubpathOrEquivalent
- 
iterator
- 
toArray
- 
toArray@NotNull public <T> @NotNull T[] toArray(@NotNull @NotNull T[] a) 
- 
add
- 
remove
- 
containsAll- Specified by:
- containsAllin interface- Collection<ItemPath>
- Specified by:
- containsAllin interface- Set<ItemPath>
 
- 
addAll
- 
retainAll
- 
removeAll
- 
clearpublic void clear()
- 
factorFactors the path set on the first segment of the paths. Assumes that each of the paths begins with a name.
- 
remainderStrips the prefix from a set of paths. Non-matching (unrelated) paths are ignored, i.e. _NOT_ transformed to empty path.
- 
toString
- 
performFreezeprotected void performFreeze()- Overrides:
- performFreezein class- AbstractFreezable
 
- 
containsRelatedReturns `true` it the set (at least partially) covers given item.
 
-