Class ObjectDeltaCollectionsUtil
- java.lang.Object
- 
- com.evolveum.midpoint.prism.delta.ObjectDeltaCollectionsUtil
 
- 
 public class ObjectDeltaCollectionsUtil extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description ObjectDeltaCollectionsUtil()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
 
- 
- 
- 
Method Detail- 
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
 
 - 
checkConsistencepublic static void checkConsistence(Collection<? extends ObjectDelta<?>> deltas) 
 
- 
 
-