Class DefaultObjectAttributeComparator

    • Constructor Detail

      • DefaultObjectAttributeComparator

        public DefaultObjectAttributeComparator()
    • Method Detail

      • isEqual

        public boolean isEqual​(java.lang.Object object1,
                               java.lang.Object object2)
        Checks, if two values are considered equal.
        Specified by:
        isEqual in interface ObjectAttributeComparator<java.lang.Object>
        Parameters:
        object1 - first object value
        object2 - second object value
        Returns:
        true, if equal, false otherwise
      • compareMapObjects

        protected boolean compareMapObjects​(java.util.Map map1,
                                            java.util.Map map2)
        Compare Map type objects.
        Parameters:
        map1 - first map object
        map2 - second map object
        Returns:
        true, if equal, false otherwise
      • compareSingleObjects

        protected boolean compareSingleObjects​(java.lang.Object object1,
                                               java.lang.Object object2)
        Compares single (non-collection) values.
        Parameters:
        object1 - first object value
        object2 - second object value
        Returns:
        true, if equal, false otherwise
      • compareCollections

        protected boolean compareCollections​(java.util.Collection coll1,
                                             java.util.Collection coll2)
        Compares collections
        Parameters:
        coll1 - the first collection
        coll2 - the second collection
        Returns:
        true, if equal, false otherwise