Class ObjectDeltaCollectionsUtil
java.lang.Object
com.evolveum.midpoint.prism.delta.ObjectDeltaCollectionsUtil
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidcheckConsistence(Collection<? extends ObjectDelta<?>> deltas) static <T extends Objectable>
 ObjectDelta<T>summarize(ObjectDelta<T>... deltas) Returns a delta that is a "sum" of all the deltas in the collection.static <T extends Objectable>
 ObjectDelta<T>summarize(List<ObjectDelta<T>> deltas) Returns a delta that is a "sum" of all the deltas in the collection.static <T extends Objectable>
 ObjectDelta<T>union(ObjectDelta<T>... deltas) Union of several object deltas.
- 
Constructor Details- 
ObjectDeltaCollectionsUtilpublic ObjectDeltaCollectionsUtil()
 
- 
- 
Method Details- 
summarize@SafeVarargs public static <T extends Objectable> ObjectDelta<T> summarize(ObjectDelta<T>... deltas) throws SchemaException Returns a delta that is a "sum" of all the deltas in the collection. The deltas as processed as an ORDERED sequence. Therefore it correctly processes item overwrites and so on. It also means that if there is an ADD delta it has to be first.- Throws:
- SchemaException
 
- 
summarizepublic static <T extends Objectable> ObjectDelta<T> summarize(List<ObjectDelta<T>> deltas) throws SchemaException Returns a delta that is a "sum" of all the deltas in the collection. The deltas as processed as an ORDERED sequence. Therefore it correctly processes item overwrites and so on. It also means that if there is an ADD delta it has to be first.- Throws:
- SchemaException
 
- 
unionpublic static <T extends Objectable> ObjectDelta<T> union(ObjectDelta<T>... deltas) throws SchemaException Union of several object deltas. The deltas are merged to create a single delta that contains changes from all the deltas. Union works on UNORDERED deltas.- Throws:
- SchemaException
 
- 
checkConsistence
 
-