Class DefaultMergeResolver
java.lang.Object
overit.geocallapp.utilities.timeline.mergeresolver.DefaultMergeResolver
- All Implemented Interfaces:
Serializable,MergeResolver
Implementation of
Two
This is the standard merge resolution strategy for timeline operations.
MergeResolver that determines mergeability based on TimeLineItem equality.Two
TimeLineRange objects can be merged if they are linked to the same TimeLineItem.This is the standard merge resolution strategy for timeline operations.
- Since:
- 1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMergeable(TimeLineRange rangeA, TimeLineRange rangeB) Determines if two timeline ranges can be merged by comparing their associated items.
-
Constructor Details
-
DefaultMergeResolver
public DefaultMergeResolver()
-
-
Method Details
-
isMergeable
Determines if two timeline ranges can be merged by comparing their associated items. Ranges are considered mergeable if they reference the sameTimeLineItem.- Specified by:
isMergeablein interfaceMergeResolver- Parameters:
rangeA- the firstTimeLineRangeto evaluaterangeB- the secondTimeLineRangeto evaluate- Returns:
- true if both ranges have equal
TimeLineItemobjects, false otherwise
-