Class MidpointProvenanceEquivalenceStrategy
- java.lang.Object
-
- com.evolveum.midpoint.schema.metadata.MidpointProvenanceEquivalenceStrategy
-
- All Implemented Interfaces:
EquivalenceStrategy
@Experimental public class MidpointProvenanceEquivalenceStrategy extends Object implements EquivalenceStrategy
Used to compare metadata from the provenance point of view. I.e. two metadata PC (or PCV) are equal iff they have the same acquisition. (TODO and mapping?) So, this strategy cannot be applied to non-metadata PCs/PCVs. Temporary implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static MidpointProvenanceEquivalenceStrategy
INSTANCE
-
Fields inherited from interface com.evolveum.midpoint.prism.equivalence.EquivalenceStrategy
DATA, IGNORE_METADATA, LITERAL, NOT_LITERAL, REAL_VALUE, REAL_VALUE_CONSIDER_DIFFERENT_IDS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Item<?,?> first, Item<?,?> second)
boolean
equals(PrismValue first, PrismValue second)
boolean
equals(MappingSpecificationType mappingSpec1, MappingSpecificationType mappingSpec2)
boolean
equals(ProvenanceAcquisitionType acq1, ProvenanceAcquisitionType acq2)
boolean
equals(ValueMetadataType metadata1, ValueMetadataType metadata2)
int
hashCode(Item<?,?> item)
int
hashCode(PrismValue value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.prism.equivalence.EquivalenceStrategy
prismValueComparator
-
-
-
-
Field Detail
-
INSTANCE
public static final MidpointProvenanceEquivalenceStrategy INSTANCE
-
-
Method Detail
-
equals
public boolean equals(Item<?,?> first, Item<?,?> second)
- Specified by:
equals
in interfaceEquivalenceStrategy
-
equals
public boolean equals(PrismValue first, PrismValue second)
- Specified by:
equals
in interfaceEquivalenceStrategy
-
equals
public boolean equals(ValueMetadataType metadata1, ValueMetadataType metadata2)
-
equals
public boolean equals(MappingSpecificationType mappingSpec1, MappingSpecificationType mappingSpec2)
-
equals
public boolean equals(ProvenanceAcquisitionType acq1, ProvenanceAcquisitionType acq2)
-
hashCode
public int hashCode(Item<?,?> item)
- Specified by:
hashCode
in interfaceEquivalenceStrategy
-
hashCode
public int hashCode(PrismValue value)
- Specified by:
hashCode
in interfaceEquivalenceStrategy
-
-