Uses of Interface
com.evolveum.midpoint.prism.equivalence.EquivalenceStrategy
Package
Description
This package is experimental and will be moved to prism project shortly.
-
Uses of EquivalenceStrategy in com.evolveum.midpoint.prism
Modifier and TypeMethodDescriptionboolean
Item.add
(V newValue, @NotNull EquivalenceStrategy strategy) Adds a value, overwriting existing one(s).boolean
Item.addAll
(Collection<V> newValues, @NotNull EquivalenceStrategy strategy) Adds given values, with the same semantics as repeated add(..) calls.void
Item.addRespectingMetadataAndCloning
(V value, @NotNull EquivalenceStrategy strategy, EquivalenceStrategy metadataEquivalenceStrategy) Adds a value, respecting the metadata.default boolean
Item.contains
(V value, @NotNull EquivalenceStrategy strategy) static boolean
ItemCollectionsUtil.contains
(Collection<? extends PrismValue> values, PrismValue valueToMatch, EquivalenceStrategy strategy) static <V extends PrismValue>
booleanPrismValueCollectionsUtil.contains
(Collection<V> thisSet, V otherValue, EquivalenceStrategy strategy) static <V extends PrismValue>
booleanPrismValueCollectionsUtil.containsAll
(Collection<V> thisSet, Collection<V> otherSet, EquivalenceStrategy strategy) static Collection<? extends PrismValue>
PrismValueCollectionsUtil.differenceConsideringIds
(@NotNull Collection<? extends PrismValue> collection1, @NotNull Collection<? extends PrismValue> collection2, @NotNull EquivalenceStrategy strategy) Returns values present in `collection1` but not in `collection2`.boolean
Item.equals
(Object obj, @NotNull EquivalenceStrategy equivalenceStrategy) Compares this item to the specified object under given strategy.boolean
PrismValue.equals
(PrismValue otherValue, @NotNull EquivalenceStrategy strategy) default V
Item.findValue
(V value, @NotNull EquivalenceStrategy strategy) int
Item.hashCode
(@NotNull EquivalenceStrategy equivalenceStrategy) Computes hash code to be used under given equivalence strategy.int
PrismValue.hashCode
(@NotNull EquivalenceStrategy equivalenceStrategy) static Collection<? extends PrismValue>
PrismValueCollectionsUtil.intersection
(@NotNull Collection<? extends PrismValue> collection1, @NotNull Collection<? extends PrismValue> collection2, @NotNull EquivalenceStrategy strategy) Returns values present in `collection1` as well as in `collection2`.boolean
Item.remove
(V value, @NotNull EquivalenceStrategy strategy) Removes values equivalent to given value from the item; under specified equivalence strategy OR when values represent the same value via "representsSameValue(.., lax=false)" method.boolean
Item.removeAll
(Collection<V> values, @NotNull EquivalenceStrategy strategy) Removes all given values from the item.void
Item.removeRespectingMetadata
(V value, @NotNull EquivalenceStrategy strategy, EquivalenceStrategy metadataEquivalenceStrategy) Removes values equivalent to given value from the item; under specified equivalence strategy OR when values represent the same value via "representsSameValue(.., lax=false)" method.void
Item.replaceAll
(Collection<V> newValues, @NotNull EquivalenceStrategy strategy) Replaces all values of the item by given values.boolean
PrismValue.representsSameValue
(PrismValue other, EquivalenceStrategy strategy, boolean lax) Returns true if this and other value represent the same value.static Collection<? extends PrismValue>
PrismValueCollectionsUtil.sameIdDifferentContent
(@NotNull Collection<? extends PrismValue> collection1, @NotNull Collection<? extends PrismValue> collection2, @NotNull EquivalenceStrategy strategy) Returns values that exist (by ID) in both collections but differ in content. -
Uses of EquivalenceStrategy in com.evolveum.midpoint.prism.deleg
Modifier and TypeMethodDescriptiondefault boolean
ItemDeltaDelegator.contains
(ItemDelta<V, D> other, EquivalenceStrategy strategy) -
Uses of EquivalenceStrategy in com.evolveum.midpoint.prism.delta
Modifier and TypeMethodDescriptionboolean
ItemDelta.contains
(ItemDelta<V, D> other, EquivalenceStrategy strategy) Returns true if the other delta is a complete subset of this delta.boolean
ObjectDelta.containsAllModifications
(Collection<? extends ItemDelta<?, ?>> itemDeltas, EquivalenceStrategy strategy) boolean
ObjectDelta.containsModification
(ItemDelta itemDelta, EquivalenceStrategy strategy) -
Uses of EquivalenceStrategy in com.evolveum.midpoint.prism.equivalence
Modifier and TypeClassDescriptionclass
Implementation of EquivalenceStrategy that uses a parametrization of built-in equals/hashCode/diff methods. -
Uses of EquivalenceStrategy in com.evolveum.midpoint.prism.util
Modifier and TypeMethodDescriptionstatic void
PrismAsserts.assertDifferent
(String message, Item item1, Item item2, EquivalenceStrategy strategy) static void
PrismAsserts.assertEquals
(String message, Item item1, Item item2, EquivalenceStrategy strategy) -
Uses of EquivalenceStrategy in com.evolveum.midpoint.schema.delta
Modifier and TypeMethodDescriptionprotected V
ItemTreeDelta.findMatchingValue
(V other, EquivalenceStrategy strategy) ContainerTreeDeltaValue.getConflictsWith
(ItemTreeDeltaValue other, EquivalenceStrategy strategy) @NotNull Collection<Conflict>
ItemTreeDelta.getConflictsWith
(ItemTreeDelta<PV, ID, I, V> other, EquivalenceStrategy strategy) ItemTreeDeltaValue.getConflictsWith
(ItemTreeDeltaValue other, EquivalenceStrategy strategy) @NotNull Collection<? extends ItemDelta<?,
?>> ItemTreeDelta.getNonConflictingModifications
(ItemTreeDelta<PV, ID, I, V> other, EquivalenceStrategy strategy) Collection<? extends ItemDelta<?,
?>> ItemTreeDeltaValue.getNonConflictingModifications
(ItemTreeDeltaValue other, EquivalenceStrategy strategy) boolean
ItemTreeDelta.hasConflictWith
(ItemTreeDelta<PV, ID, I, V> other, EquivalenceStrategy strategy) boolean
ItemTreeDeltaValue.hasConflictWith
(ItemTreeDeltaValue other, EquivalenceStrategy strategy) <V extends ItemTreeDeltaValue>
booleanContainerTreeDeltaValue.match
(V other, EquivalenceStrategy strategy) <V extends ItemTreeDeltaValue>
booleanItemTreeDeltaValue.match
(V other, EquivalenceStrategy strategy) -
Uses of EquivalenceStrategy in com.evolveum.midpoint.schema.metadata
Modifier and TypeClassDescriptionclass
Used to compare metadata from the provenance point of view.