Class IdentityEqualsDirtyPredicate
java.lang.Object
org.springframework.session.data.gemfire.support.IdentityEqualsDirtyPredicate
- All Implemented Interfaces:
IsDirtyPredicate
IdentityEqualsDirtyPredicate
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 identity operator (==).- 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
-
IdentityEqualsDirtyPredicate
public IdentityEqualsDirtyPredicate()
-
-
Method Details
-
isDirty
Determines whether thenew value
is dirty by comparing thenew value
with theold value
using the identity operator (==). 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 the identity operator (==).
-