Class EqualsDirtyPredicate
java.lang.Object
org.springframework.session.data.gemfire.support.EqualsDirtyPredicate
- All Implemented Interfaces:
IsDirtyPredicate
EqualsDirtyPredicate
is an IsDirtyPredicate
strategy interface implementation that determines
whether the new value
is dirty by comparing the new value
with the old value
using the Object.equals(Object)
method.- Since:
- 2.1.2
- See Also:
-
Field Summary
FieldsFields inherited from interface org.springframework.session.data.gemfire.support.IsDirtyPredicate
ALWAYS_DIRTY, NEVER_DIRTY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.session.data.gemfire.support.IsDirtyPredicate
andThen, orThen
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
EqualsDirtyPredicate
public EqualsDirtyPredicate()
-
-
Method Details
-
isDirty
Determines whether thenew value
is dirty by comparing thenew value
with theold value
using theObject.equals(Object)
method. This method is null-safe.- Specified by:
isDirty
in interfaceIsDirtyPredicate
- Parameters:
oldValue
-Object
referring to the previous value.newValue
-Object
referring to the new value.- Returns:
- a boolean value indicating whether the
new value
is dirty by comparing thenew value
with theold value
using theObject.equals(Object)
method. - See Also:
-