Interface ComparisonUtils

  • All Known Implementing Classes:
    DefaultComparisonUtils

    public interface ComparisonUtils
    Utilities for comparing data structures in the context of comparing two database schemas.
    Author:
    Matt Ward
    • Method Detail

      • compareSimpleOrderedLists

        void compareSimpleOrderedLists​(DbProperty leftProperty,
                                       DbProperty rightProperty,
                                       DiffContext ctx)
        Compare two Lists of 'simple' (i.e. non-DbObject) objects. Ordering is significant - if an element E appears in both collections but at different indexes then it is not considered to be the same item.
        Parameters:
        leftProperty - DbProperty
        rightProperty - DbProperty
        ctx - DiffContext
      • compareSimple

        void compareSimple​(DbProperty left,
                           DbProperty right,
                           DiffContext ctx)
        Compare two 'simple' (i.e. non-DbObject) objects using their Object.equals(Object) method to decide if there is a difference.
        Parameters:
        left - DbProperty
        right - DbProperty
        ctx - - context