public class DefaultElementValueComparator extends java.lang.Object implements ElementValueComparator
Modifier and Type | Field and Description |
---|---|
private CacheConfiguration |
cacheConfiguration |
Constructor and Description |
---|
DefaultElementValueComparator(CacheConfiguration cacheConfiguration)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
compareValues(java.lang.Object objectValue1,
java.lang.Object objectValue2) |
private Element |
copyForReadIfNeeded(Element element) |
boolean |
equals(Element e1,
Element e2)
Compare if the two element values are equal
|
private boolean |
skipCopyForRead() |
private final CacheConfiguration cacheConfiguration
public DefaultElementValueComparator(CacheConfiguration cacheConfiguration)
cacheConfiguration
- the cache configurationpublic boolean equals(Element e1, Element e2)
equals
in interface ElementValueComparator
e1
- the first element to comparee2
- the second element to compareprivate static boolean compareValues(java.lang.Object objectValue1, java.lang.Object objectValue2)
private boolean skipCopyForRead()