Top Description Methods
net.sf.ehcache.store

public Interface ElementValueComparator

Known Direct Implementers
net.sf.ehcache.store.CopyingCacheStore.CopyingElementValueComparator, net.sf.ehcache.store.DefaultElementValueComparator, net.sf.ehcache.store.TxCopyingCacheStore.TxCopyingElementValueComparator
Imports
net.sf.ehcache.Element

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

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the elements are equal
equals
(Element
element to compare
e1
,
Element
element to compare
e2
)

Compare the two elements.

Method Detail

equalsback to summary
public boolean equals(Element e1, Element e2)

Compare the two elements. Null values have to be supported.

Parameters
e1:Element

element to compare

e2:Element

element to compare

Returns:boolean

true if the elements are equal