Class ObjectDeltaCollectionsUtil


  • public class ObjectDeltaCollectionsUtil
    extends Object
    • Constructor Detail

      • ObjectDeltaCollectionsUtil

        public ObjectDeltaCollectionsUtil()
    • Method Detail

      • summarize

        @SafeVarargs
        public static <T extends ObjectableObjectDelta<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
      • summarize

        public static <T extends ObjectableObjectDelta<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
      • checkConsistence

        public static void checkConsistence​(Collection<? extends ObjectDelta<?>> deltas)