Class DefaultObjectAttributeComparator

    • Constructor Detail

      • DefaultObjectAttributeComparator

        public DefaultObjectAttributeComparator()
    • Method Detail

      • isEqual

        public boolean isEqual​(ObjectValuePair value1,
                               ObjectValuePair value2)
        Description copied from interface: ObjectAttributeComparator
        Checks, if two values are considered equal. Takes two ObjectValuePairs as parameters, which hold informations about the values itself and the items and property descriptors from which they are referenced.
        Specified by:
        isEqual in interface ObjectAttributeComparator
        Parameters:
        value1 - the first ObjectValuePair
        value2 - the second ObjectValuePair
        Returns:
        true, if equal, false otherwise
      • compareSingleObjects

        protected boolean compareSingleObjects​(java.lang.Object object1,
                                               java.lang.Object object2,
                                               DefaultObjectAttributeComparator.AttributeComparisonContext ctx)
        Compares single (non-collection) values.
        Parameters:
        object1 - the first value
        object2 - the second value
        ctx - the context, holds informations about referencing items and property descriptor
        Returns:
        true, if equal, false otherwise
      • comparePlainObjects

        protected boolean comparePlainObjects​(java.lang.Object object1,
                                              java.lang.Object object2,
                                              DefaultObjectAttributeComparator.AttributeComparisonContext ctx)
        Compares objects that are not instances of TypedObject
        Parameters:
        object1 - the first value
        object2 - the second value
        ctx - the context, holds informations about referencing items and property descriptor
        Returns:
        true, if equal, false otherwise
      • compareTypedObjects

        protected boolean compareTypedObjects​(TypedObject object1,
                                              TypedObject object2,
                                              DefaultObjectAttributeComparator.AttributeComparisonContext ctx)
        Compares objects that are instances of TypedObject
        Parameters:
        object1 - the first value
        object2 - the second value
        ctx - the context, holds informations about referencing items and property descriptor
        Returns:
        true, if equal, false otherwise
      • compareCollections

        protected boolean compareCollections​(java.util.Collection coll1,
                                             java.util.Collection coll2,
                                             DefaultObjectAttributeComparator.AttributeComparisonContext ctx)
        Compares collections
        Parameters:
        coll1 - the first collection
        coll2 - the second collection
        ctx - the context, holds informations about referencing items and property descriptor
        Returns:
        true, if equal, false otherwise