Top Description Constructors Methods
net.sf.ehcache.store

public Class DefaultElementValueComparator

extends Object
implements ElementValueComparator
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.store.ElementValueComparator
Imports
net.sf.ehcache.Element, net.sf.ehcache.config.CacheConfiguration, java.util.Arrays

DefaultElementValueComparator does compare the values on the two elements based on their equals contract
Author
Ludovic Orban

Constructor Summary

AccessConstructor and Description
public
DefaultElementValueComparator(CacheConfiguration
the cache configuration
cacheConfiguration
)

Constructor

Method Summary

Modifier and TypeMethod and Description
private static boolean
compareValues(Object objectValue1, Object objectValue2)

public boolean
equals(Element
element to compare
e1
,
Element
element to compare
e2
)

Implements net.sf.ehcache.store.ElementValueComparator.equals.

Compare the two elements.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultElementValueComparatorback to summary
public DefaultElementValueComparator(CacheConfiguration cacheConfiguration)

Constructor

Parameters
cacheConfiguration:CacheConfiguration

the cache configuration

Method Detail

compareValuesback to summary
private static boolean compareValues(Object objectValue1, Object objectValue2)
equalsback to summary
public boolean equals(Element e1, Element e2)

Implements net.sf.ehcache.store.ElementValueComparator.equals.

Doc from net.sf.ehcache.store.ElementValueComparator.equals.

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