net.sf.ehcache.store
Class DefaultElementValueComparator
java.lang.Object
net.sf.ehcache.store.DefaultElementValueComparator
- All Implemented Interfaces:
- ElementValueComparator
public class DefaultElementValueComparator
- extends Object
- implements ElementValueComparator
DefaultElementValueComparator does compare the values on the two elements
based on their equals
contract
- Author:
- Ludovic Orban
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultElementValueComparator
public DefaultElementValueComparator(CacheConfiguration cacheConfiguration)
- Constructor
- Parameters:
cacheConfiguration
- the cache configuration
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 comparee2
- element to compare
- Returns:
true
if the elements are equal
Copyright 2001-2015, Terracotta, Inc.