Class DeltaAwareDirtyPredicate

java.lang.Object
org.springframework.session.data.gemfire.support.DeltaAwareDirtyPredicate
All Implemented Interfaces:
IsDirtyPredicate

public class DeltaAwareDirtyPredicate extends Object implements 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:
  • Field Details

  • Constructor Details

    • DeltaAwareDirtyPredicate

      public DeltaAwareDirtyPredicate()
  • Method Details

    • isDirty

      public boolean isDirty(@Nullable Object oldValue, @Nullable Object newValue)
      Determines whether the new value is dirty by evaluating the new value as an instance of Delta and invoking its Delta.hasDelta() method. The new value is considered dirty immediately and automatically if the new value is not an instance of Delta. This method is null-safe.
      Specified by:
      isDirty in interface IsDirtyPredicate
      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 the new value as an instance of Delta and invoking its Delta.hasDelta() method. Returns true immediately if the new value is not an instance of Delta.
      See Also:
      • Delta.hasDelta()
      • Delta