Package org.eclipse.lyo.trs.client.util
Class ProviderUtil
java.lang.Object
org.eclipse.lyo.trs.client.util.ProviderUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbaseChangeEventsOptimizationSafe
(List<ChangeEvent> compressedChangesList, List<URI> baseMembers) static boolean
changeLogContainsEvent
(URI syncPointUri, ChangeLog changeLog) returns true if the change log pojo contains the change event with the given uri and false otherwisestatic boolean
static boolean
isNotEmpty
(Object[] deletions) static boolean
isNotEmptySingletonArray
(Object[] changeLogs) static List<ChangeEvent>
optimizedChangesList
(List<ChangeLog> changeLogs, URI lastProcessedChangeEventUri) 1. create an ordered list of change events from the list of change logs given as an argument 2.
-
Constructor Details
-
ProviderUtil
public ProviderUtil()
-
-
Method Details
-
isNotEmptySingletonArray
-
isNotEmpty
-
isNilUri
-
changeLogContainsEvent
returns true if the change log pojo contains the change event with the given uri and false otherwise -
optimizedChangesList
public static List<ChangeEvent> optimizedChangesList(List<ChangeLog> changeLogs, URI lastProcessedChangeEventUri) 1. create an ordered list of change events from the list of change logs given as an argument 2. Cut the list at the last processed change event 3. Optimize the changes list by removing all redundant events for the same resource- Parameters:
changeLogs
- the list of change logs containing the change events to be processed- Returns:
- the optimized ordered list of change events
-
baseChangeEventsOptimizationSafe
-