Class IdentityEqualsDirtyPredicate

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

public class IdentityEqualsDirtyPredicate extends Object implements 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 Details

  • Constructor Details

    • IdentityEqualsDirtyPredicate

      public IdentityEqualsDirtyPredicate()
  • Method Details

    • isDirty

      public boolean isDirty(@Nullable Object oldValue, @Nullable Object newValue)
      Determines whether the new value is dirty by comparing the new value with the old value using the identity operator (==). 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 comparing the new value with the old value using the identity operator (==).