ehcache

net.sf.ehcache.store
Class DefaultElementValueComparator

java.lang.Object
  extended by 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

Constructor Summary
DefaultElementValueComparator(CacheConfiguration cacheConfiguration)
          Constructor
 
Method Summary
 boolean equals(Element e1, Element e2)
          Compare the two elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

ehcache

Copyright 2001-2014, Terracotta, Inc.