Class DefaultElementValueComparator

  • All Implemented Interfaces:
    ElementValueComparator

    public class DefaultElementValueComparator
    extends java.lang.Object
    implements ElementValueComparator
    DefaultElementValueComparator does compare the values on the two elements based on their equals contract
    Author:
    Ludovic Orban
    • Constructor Detail

      • DefaultElementValueComparator

        public DefaultElementValueComparator​(CacheConfiguration cacheConfiguration)
        Constructor
        Parameters:
        cacheConfiguration - the cache configuration
    • Method Detail

      • equals

        public boolean equals​(Element e1,
                              Element e2)
        Compare the two elements. Null values have to be supported.
        Specified by:
        equals in interface ElementValueComparator
        Parameters:
        e1 - element to compare
        e2 - element to compare
        Returns:
        true if the elements are equal