Package net.sf.ehcache.store
Class DefaultElementValueComparator
- java.lang.Object
-
- net.sf.ehcache.store.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 theirequalscontract- Author:
- Ludovic Orban
-
-
Constructor Summary
Constructors Constructor Description DefaultElementValueComparator(CacheConfiguration cacheConfiguration)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Element e1, Element e2)Compare the two elements.
-
-
-
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:
equalsin interfaceElementValueComparator- Parameters:
e1- element to comparee2- element to compare- Returns:
trueif the elements are equal
-
-