Class DeltaAwareDirtyPredicate
java.lang.Object
org.springframework.session.data.gemfire.support.DeltaAwareDirtyPredicate
- All Implemented Interfaces:
IsDirtyPredicate
DeltaAwareDirtyPredicate
is an IsDirtyPredicate
strategy interface implementation that evaluates
the new value
as instance of Delta
and uses the Delta.hasDelta()
method
to determine if the new value
is dirty.- Since:
- 2.1.2
- See Also:
-
Delta
IsDirtyPredicate
-
Field Summary
Fields inherited from interface org.springframework.session.data.gemfire.support.IsDirtyPredicate
ALWAYS_DIRTY, NEVER_DIRTY
-
Constructor Summary
-
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
-
DeltaAwareDirtyPredicate
public DeltaAwareDirtyPredicate()
-
-
Method Details
-
isDirty
Determines whether thenew value
is dirty by evaluating thenew value
as an instance ofDelta
and invoking itsDelta.hasDelta()
method. Thenew value
is considered dirty immediately and automatically if thenew value
is not an instance ofDelta
. 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 evaluating thenew value
as an instance ofDelta
and invoking itsDelta.hasDelta()
method. Returns true immediately if thenew value
is not an instance ofDelta
. - See Also:
-
Delta.hasDelta()
Delta
-