ehcache

net.sf.ehcache.store
Interface ElementValueComparator

All Known Implementing Classes:
DefaultElementValueComparator

public interface ElementValueComparator

Used to compare two element values. Implementations must define a constructor accepting a single CacheConfiguration argument.

Author:
Ludovic Orban

Method Summary
 boolean equals(Element e1, Element e2)
          Compare the two elements.
 

Method Detail

equals

boolean equals(Element e1,
               Element e2)
Compare the two elements. Null values have to be supported.

Parameters:
e1 - element to compare
e2 - element to compare
Returns:
true if the elements are equal

ehcache

Copyright 2001-2016, Terracotta, Inc.