Package com.tnsai.context.entity
Enum Class ConflictResolution
- All Implemented Interfaces:
Serializable,Comparable<ConflictResolution>,Constable
Strategies for resolving conflicting attribute values from different sources.
When an entity is resolved from multiple sources (CRM, Slack, Email), attributes may have conflicting values. This enum defines how to handle such conflicts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the value with the highest confidence score.Keep all conflicting values as a list.Require manual resolution - flag the conflict for human review.Use the most recently observed value.Use the value from the highest priority source. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConflictResolutionReturns the enum constant of this class with the specified name.static ConflictResolution[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
MOST_RECENT
Use the most recently observed value. Best for: Dynamic attributes that change frequently (status, last_activity) -
HIGHEST_CONFIDENCE
Use the value with the highest confidence score. Best for: Verified data from authoritative sources -
SOURCE_PRIORITY
Use the value from the highest priority source. Requires: Source priority configuration Best for: When certain systems are more authoritative -
KEEP_ALL
Keep all conflicting values as a list. Best for: When all values are potentially valid (e.g., multiple phone numbers) -
MANUAL
Require manual resolution - flag the conflict for human review. Best for: Critical attributes that need human verification
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-