Package ghidra.trace.model.target
Enum Class TraceObject.ConflictResolution
java.lang.Object
java.lang.Enum<TraceObject.ConflictResolution>
ghidra.trace.model.target.TraceObject.ConflictResolution
- All Implemented Interfaces:
Serializable,Comparable<TraceObject.ConflictResolution>,Constable
- Enclosing interface:
TraceObject
Specifies a strategy for resolving duplicate keys
Values are not permitted to have intersecting lifespans if they have the same parent and key, since this would imply the value is not unique for a given parent, key, and snap. Thus, when values and lifespans are being set that would result in conflicting entries, the conflict must be resolved, either by clearing the span or by denying the change.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdjust the new entry to fit into the span available, possibly ignoring it altogetherThrowDuplicateKeyExceptionif the specified lifespan would result in conflicting entriesTruncate, split, or delete conflicting entries to make way for the specified lifespan -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TraceObject.ConflictResolution[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRUNCATE
Truncate, split, or delete conflicting entries to make way for the specified lifespan -
DENY
ThrowDuplicateKeyExceptionif the specified lifespan would result in conflicting entries -
ADJUST
Adjust the new entry to fit into the span available, possibly ignoring it altogether
-
-
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
-