Record Class MergeFragment
java.lang.Object
java.lang.Record
com.evolveum.midpoint.schema.merger.threeway.MergeFragment
- Record Components:
left
-right
-conflict
-
- All Implemented Interfaces:
DebugDumpable
public record MergeFragment(@NotNull List<ItemDelta<?,?>> left, @NotNull List<ItemDelta<?,?>> right, boolean conflict)
extends Record
implements DebugDumpable
When there are two deltas available:
- if conflict is true, then one of two deltas have to be picked by user to be applied
- if conflict is false, then only one delta should be applied (they should be equivalent)
-
Field Summary
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
Constructor Summary
ConstructorDescriptionMergeFragment
(@NotNull ItemDelta<?, ?> left, @NotNull ItemDelta<?, ?> right, boolean conflict) MergeFragment
(@NotNull List<ItemDelta<?, ?>> left, @NotNull List<ItemDelta<?, ?>> right, boolean conflict) Creates an instance of aMergeFragment
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
conflict()
Returns the value of theconflict
record component.static MergeFragment
debugDump
(int indent) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.left()
Returns the value of theleft
record component.static MergeFragment
leftOnlyChange
(@NotNull ItemDelta<?, ?> left) static MergeFragment
noConflict
(@NotNull ItemDelta<?, ?> left, @NotNull ItemDelta<?, ?> right) right()
Returns the value of theright
record component.static MergeFragment
rightOnlyChange
(@NotNull ItemDelta<?, ?> right) toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Constructor Details
-
Method Details
-
conflict
public static MergeFragment conflict(@NotNull @NotNull ItemDelta<?, ?> left, @NotNull @NotNull ItemDelta<?, ?> right) -
noConflict
public static MergeFragment noConflict(@NotNull @NotNull ItemDelta<?, ?> left, @NotNull @NotNull ItemDelta<?, ?> right) -
leftOnlyChange
-
rightOnlyChange
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
debugDump
- Specified by:
debugDump
in interfaceDebugDumpable
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
left
Returns the value of theleft
record component.- Returns:
- the value of the
left
record component
-
right
Returns the value of theright
record component.- Returns:
- the value of the
right
record component
-
conflict
public boolean conflict()Returns the value of theconflict
record component.- Returns:
- the value of the
conflict
record component
-